libnvmf_create_raw_secret(9)
π 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β astruct libnvme_global_ctxobject, 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 theraw_secretin 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
- 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