OS Manuals

libnvmf_import_tls_key_versioned-libnvme3(2)

libnvmf_import_tls_key_versioned - Decode a PSK from the PSK interchange format

libnvmf_import_tls_key_versioned(9) libnvme API manual libnvmf_import_tls_key_versioned(9)

libnvmf_import_tls_key_versioned - Decode a PSK from the PSK interchange format

int libnvmf_import_tls_key_versioned (struct libnvme_global_ctx *ctx , const char *encoded_key , unsigned char *version , enum libnvmf_hmac_alg *hmac , size_t *key_len , unsigned char **key );

struct libnvme_global_ctx object
PSK in PSK interchange format
Version of the PSK interchange format read from encoded_key to return. Always 1; any other value is rejected with -EINVAL.
Hash function recorded in encoded_key to return; it derives a retained PSK from a configured PSK
Length of the decoded PSK to return
Decoded PSK to return

Decodes encoded_key from the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport Specification 1.3.

It is the responsibility of the caller to free the returned buffer.

0 on success, negative error code otherwise.

libnvmf_import_tls_key_versioned October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31