nvme_auth_derive_tls_psk(9)
π nvme_auth_derive_tls_psk(9) β Kernel API Manual π
okay so bestie, this page is from the Kernel API Manual, and the icon is nvme_auth_derive_tls_psk β sheβs literally here to Derive TLS PSK. crypto girl summer, no cap. π
β¨
πΈ NAME πΈ
nvme_auth_derive_tls_pskβ Derive TLS PSK
β¨ SYNOPSIS β¨
int nvme_auth_derive_tls_psk (int hmac_id , const u8 *psk , size_t
psk_len , const char *psk_digest , u8 **ret_psk );
π«Ά ARGUMENTS π«Ά
hmac_idβ Hash function identifier. like, which hash function weβre using, bestie.pskβ generated input PSK. yep, thatβs the PSK going in.psk_lenβ size ofpsk. literally how big thepskis.psk_digestβ TLS PSK digest. the digest, periodt.ret_pskβ Pointer to the resulting TLS PSK. where the resulting TLS PSK pointer lands.
π§ DESCRIPTION π§
okay so hereβs the tea: you derive a TLS PSK as specified in TP8018 Section 3.6.1.3: TLS PSK and PSK identity Derivation.
The TLS PSK shall be derived as follows from an input PSK (i.e., either a retained PSK or a generated PSK) and a PSK identity using the HKDF-Extract and HKDF-Expand-Label operations (refer to RFC 5869 and RFC 8446), where the hash function is the one specified by the hash specifier of the PSK identity:
PRK = HKDF-Extract(0, Input PSK);andTLS PSK = HKDF-Expand-Label(PRK, "nvme-tls-psk", PskIdentityContext, L), wherePskIdentityContextis the hash identifier indicated in the PSK identity concatenated to a space character and to the Base64 PSK digest (i.e.,"<hash> <PSK digest>") andLis the output size in bytes of the hash function (i.e.,32for SHA-256 and48for SHA-384).
She returns 0 on success with a valid psk pointer in ret_psk, or a negative error number otherwise. thatβs the whole vibe check. π
π SEE ALSO π
- Kernel file
./drivers/nvme/common/auth.c nvme_auth_augmented_challenge(9)nvme_auth_gen_session_key(9)nvme_auth_generate_psk(9)nvme_auth_generate_digest(9)
okay bye bestie π source/version: ./drivers/nvme/common; date: October 2026 π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms