nvme_export...ey_versioned(2)
π nvme_export_tls_key_versioned β NAME π
okay so bestie, welcome to the libnvme API manual (section 2, we're fancy here π). this page is all about nvme_export_tls_key_versioned, and what it does is Export a TLS pre-shared key. that's it. that's the whole job. she exports. π
β¨ SYNOPSIS β¨
char * nvme_export_tls_key_versioned (unsigned char version , unsigned char hmac , const unsigned char *key_data , size_t key_len );
four args, one return, no cap. let's get into it π¦
π«Ά ARGUMENTS π«Ά
versionβ tells you the representation of the TLS PSK. like, which flavor of PSK we're talking about here. it's giving "context, bestie" β¨hmacβ the HMAC algorithm used to transfor the configured PSK into a retained PSK. so it's the glow-up algorithm, turning your configured PSK into the retained one π₯key_dataβ the raw data of the key. straight up, no filter, raw πkey_lenβ the length ofkey_data. she's the measuring tape, keepin' things honest π
πΈ DESCRIPTION πΈ
so here's the tea: this function returns key_data in the PSK Interchange format, as defined in section 3.6.1.5 of the NVMe TCP Transport specification. that's the exact spec section, don't @ me, go read it, iykyk πβ¨
π RETURN π
she hands you back the string containing the TLS identity π β¦or NULL with errno set on error π (yes, errno, the classic).
β οΈ bestie listen: it is the responsibility of the caller to free the returned string. she's not cleaning up after herself β that's on you. free it. fr fr. don't leak, we don't do that here π
π a lil sign-off π
this lil page came from the libnvme API manual, dated July 2026. that's the whole vibe. now go free your strings and slay π πβ
periodt. π§
π¦ 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