libnvmf_create_raw_secret(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvmf_create_raw_secret β€” libnvme API manual

okay so bestie, welcome to the section of the libnvme API manual about making raw secrets ✨ this one is literally libnvmf_create_raw_secret(9) and she is that girl.


🌸 NAME 🌸

libnvmf_create_raw_secret β€” generate a raw secret buffer from input data πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int libnvmf_create_raw_secret (struct libnvme_global_ctx *ctx , const
char *secret , size_t key_len , unsigned char **raw_secret );

like, yes, it's a mouthful, but she slays πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • ctx β€” a struct libnvme_global_ctx object, aka your context bestie, the whole vibe holder 🫢
  • secret β€” the input secret data, i.e. the actual secret you're feeding in πŸ”
  • key_len β€” the length of the raw_secret in bytes πŸ“
  • raw_secret β€” the return buffer that gets the generated raw secret dropped into it, no cap ✨

🌈 DESCRIPTION 🌈

so what she does is: she transforms the provided secret into a raw secret buffer that's suitable for use with NVMe key management operations. it's giving glow-up, but for bytes πŸ’«

and the generated raw secret can subsequently be passed to libnvmf_insert_tls_key_versioned or libnvmf_update_key β€” iykyk πŸ‘‘


⭐ RETURN ⭐

0 on success, and a negative error code otherwise 😭 (fr fr, check that return value, don't just vibe past it)


lowkey iconic of you to read the whole thing. main character energy 🧚

mwah πŸ’œ that's the whole page, bestie β€” brought to you by the libnvme API manual, dated October 2026, and yes that footer got the cutest possible sign-off because you deserve it πŸŽ€

πŸ“¦ where this page comes from