LIBNVMF_INSERT_TLS_KEY_VERSIONED-LIBNVME3(2)
π NAME π
okay so bestie, welcome to the libnvme API manual β¨ this page is all about libnvmf_insert_tls_key_versioned(9) β and its whole name is literally libnvmf_insert_tls_key_versioned β Derive and insert a TLS PSK. That's the assignment. π
πΈ SYNOPSIS πΈ
int libnvmf_insert_tls_key_versioned (struct libnvme_global_ctx *ctx ,
const char *keyring , const char *key_type , const char *hostnqn , const
char *subsysnqn , int version , enum libnvmf_hmac_alg hmac , unsigned
char *configured_key , int key_len , long *key );
π ARGUMENTS π
ctxβ thestruct libnvme_global_ctxobject π«Άkeyringβ the keyring to use πkey_typeβ the type of the resulting key β¨hostnqnβ the Host NVMe Qualified Name πsubsysnqnβ the Subsystem NVMe Qualified Name πversionβ the TLS PSK identity version to use πhmacβ the HMAC algorithm π§configured_keyβ the configured PSK to derive the retained PSK from π₯key_lenβ the length ofconfigured_keyπkeyβ the key serial to return π
π¦ DESCRIPTION π¦
so here's the vibe, bestie: this function derives a retained PSK from configured_key and, from that, the TLS PSK and its identity as specified in the NVMe TCP Transport Specification 1.3, section 3.6.1.3. Then it stores the TLS PSK as type key_type under that identity in the keyring specified by keyring. iconic behavior, no cap π
β¨
the version argument selects the identity version: 0 is obsolete and defined in the NVMe TCP Transport Specification 1.0, and 1 is TLS 1.3 with the PSK digest in the identity.
π¨ heads up:version0is obsolete, so don't act surprised when the manpage says so.
β RETURN β
0 on success, and a negative error code otherwise. that's it, that's the return vibe π«Άπ
cute sign-off time π this page comes from the libnvme API manual, dated October 2026, with footer source/version energy: libnvmf_insert_tls_key_velibnvmf_inse...ey_versioned(9). stay slay, bestie ππ¦
π¦ 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