nvme_import...ey_versioned(2)
π nvme_import_tls_key_versioned(2) π
okay bestie, so this one is a libnvme API manual page and it's literally called nvme_import_tls_key_versioned β the way this function is just here to tango with your TLS keys? iconic behavior, no notes. π
β¨ NAME β¨
nvme_import_tls_key_versioned β Import a TLS key π¦
β¨ SYNOPSIS β¨
unsigned char * nvme_import_tls_key_versioned (const char *encoded_key ,
unsigned char *version , unsigned char *hmac , size_t *key_len );
β¨ ARGUMENTS β¨
encoded_keyβ your TLS key, chillin' in PSK interchange format πΈversionβ tells you which representation of the TLS PSK we're dealing with πhmacβ the HMAC algorithm that's used to transform the configured PSK into a retained PSK π₯key_lenβ the length of the resulting key data, periodt π
β¨ DESCRIPTION β¨
So basically it imports key_data in the PSK Interchange format β and that format is exactly as defined in section 3.6.1.5 of the NVMe TCP Transport specification. iykyk. π
β¨ RETURN β¨
You get back the raw data of the PSK π«Ά β or NULL with errno set if something went wrong π.
bestie, listen: it is the responsibility of the caller to free the returned string. like, that's on you. don't ghost it, free it. π§
and that's the whole page, no cap. β¨ written for the libnvme API manual, dated July 2026 β love that for us, mwah ππ
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms