LIBNVMF_INSERT_TLS_KEY_VERSIONED-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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 β€” the struct libnvme_global_ctx object 🫢
  • 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 of configured_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: version 0 is 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