LIBNVMF_GENERATE_TLS_KEY_IDENTITY_COMPAT-LIBNVME3(2)
π NAME π
okay so bestie, meet libnvmf_generate_tls_key_identity_compat from the libnvme API manual β it's the one that generates the TLS PSK identity. literally what it says on the tin π
β¨ SYNOPSIS β¨
int libnvmf_generate_tls_key_identity_compat (struct libnvme_global_ctx
*ctx , const char *hostnqn , const char *subsysnqn , int version , enum
libnvmf_hmac_alg hmac , unsigned char *configured_key , int key_len ,
char **identity );
π«Ά ARGUMENTS π«Ά
ctxβ astruct libnvme_global_ctxobject, aka the global context bestie π«Άhostnqnβ Host NVMe Qualified Name β¨subsysnqnβ Subsystem NVMe Qualified Name πΈversionβ TLS PSK identity version to use πhmacβ HMAC algorithm π₯configured_keyβ Configured PSK to derive the retained PSK from πkey_lenβ Length ofconfigured_keyπ¦identityβ TLS PSK identity to return π
π¦ DESCRIPTION π¦
so basically it derives a retained PSK as specified in the NVMe TCP Transport Specification 1.3, section 3.6.1.3, and generates the corresponding TLS PSK identity. no cap β¨
this one is the compat girlie, and it differs from libnvmf_generate_tls_key_identity in that it uses the original implementation for HKDF-Expand-Label which does not prefix the 'info' and 'label' strings with the length. iykyk π
it's giving βyou own this memory nowβ π β it is the responsibility of the caller to free the returned string.
π RETURN π
0on success, negative error code otherwise. periodt π
mwah π β that's the tea from the libnvme API manual, October 2026, libnvmf_generate_tls_key_identity_compat(9). bestie, you got this π«Άβ¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms