libnvmf_import_tls_key(9)
π libnvmf_import_tls_key(9) π
okay so this is the libnvme API manual page for libnvmf_import_tls_key, and bestie, it is literally here to decode a PSK from the PSK interchange format. iykyk π
πΈ NAME πΈ
libnvmf_import_tls_key β Decode a PSK from the PSK interchange format π
β¨ SYNOPSIS β¨
int libnvmf_import_tls_key (struct libnvme_global_ctx *ctx , const char
*encoded_key , int *key_len , enum libnvmf_hmac_alg *hmac , unsigned
char **key );
π ARGUMENTS π
ctxβ astruct libnvme_global_ctxobject π«Άencoded_keyβ the PSK in PSK interchange format πkey_lenβ length of the decoded PSK to return β¨hmacβ the hash function recorded inencoded_keyto return πΈkeyβ the decoded PSK to return π¦
π¦ DESCRIPTION π¦
The way that this function does its thing: it decodes encoded_key from the PSK Interchange format, as defined in section 3.6.1.5 of the NVMe TCP Transport Specification 1.3. No cap. π
Heads up: it is the responsibility of the caller to free the returned buffer. bestie, do not forget β that buffer is your problem now ππ
β RETURN β
0 on success, negative error code otherwise. Periodt. β¨
Bye bestie π«Ά β this page is source/version libnvmf_import_tls_key, dated October 2026, aka the libnvmf_import_tls_key(9) manual vibe. πππ
π¦ 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