libnvmf_import_tls_key-libnvme3(2)

libnvmf_import_tls_key-libnvme32

Decode a psk from the psk interchange format

Usage

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

struct libnvme_global_ctx object

encoded_key

PSK in PSK interchange format

key_len

Length of the decoded PSK to return

hmac

Hash function recorded in encoded_key to return

key

Decoded PSK to return

Overview

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.

Return

0 on success, negative error code otherwise.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.