nvme_import_tls_key(2) libnvme API manual nvme_import_tls_key(2)

nvme_import_tls_key - Import a TLS key

unsigned char * nvme_import_tls_key (const char *encoded_key , int *key_len , unsigned int *hmac );

TLS key in PSK interchange format
Length of the resulting key data
HMAC algorithm

Imports key_data in the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport specification.

The raw data of the PSK or NULL with errno set on error. It is the responsibility of the caller to free the returned string.

nvme_import_tls_key January 2025