nvme_insert...ey_versioned(2)
π nvme_insert_tls_key_versioned β libnvme API manual, bestie edition π
okay so picture this: you're deep in the libnvme API manual (hi, that's the manual this page lives in π«Ά) and you need a TLS key derived and inserted like it's nothing. That's this function. She does the math, she drops the key in the keyring, she leaves. Iconic behaviour, no cap. β¨
πΈ NAME πΈ
nvme_insert_tls_key_versioned β derive and insert a TLS key, bestie π
π¦ SYNOPSIS π¦
long nvme_insert_tls_key_versioned (const char *keyring , const char
*key_type , const char *hostnqn , const char *subsysnqn , int version ,
int hmac , unsigned char *configured_key , int key_len );
π ARGUMENTS π
keyringβ the keyring we're using, like the lil handbag we keep our keys in πkey_typeβ the type of the resulting key (what kind of key we're manifesting β¨)hostnqnβ the Host NVMe Qualified Namesubsysnqnβ the Subsystem NVMe Qualified Nameversionβ which key version we're usinghmacβ the HMAC algorithm (the secret sauce for the derivation π)configured_keyβ the configured key data that we derive the key fromkey_lenβ the length ofconfigured_key. she has measurements, periodt π
β¨ DESCRIPTION β¨
So what does she actually DO? She derives a 'retained' TLS key π β as specified in NVMe TCP 1.0a if version is set to '0', or as specified in NVMe TP8028 if version is set to '1' β and then stores it, as type key_type, in the keyring you specified with keyring.
that's it. that's the whole gig. derive, insert, slay. π§
π RETURN π
- the key serial number if the key could be inserted into the keyring π
- or
0witherrnootherwise π
fr fr, check thaterrnoβ a0with no follow-up is giving cryptic ex energy and we do not have time for that π
and that's the whole page bestie!! mwah π β this one comes to you from the libnvme API manual, dated July 2026. go insert some keys, you've got this πππ¦
π¦ 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