OS Manuals

libnvmf_generate_tls_key_identity-libnvme3(2)

libnvmf_generate_tls_key_identity - Generate the TLS PSK identity

libnvmf_generate_tls_key_identity(9) libnvme API manual libnvmf_generate_tls_key_identity(9)

libnvmf_generate_tls_key_identity - Generate the TLS PSK identity

int libnvmf_generate_tls_key_identity (struct libnvme_global_ctx *ctx , const char *hostnqn , const char *subsysnqn , int version , enum libnvmf_hmac_alg hmac , unsigned char *configured_key , int key_len , char **identity );

struct libnvme_global_ctx object
Host NVMe Qualified Name
Subsystem NVMe Qualified Name
TLS PSK identity version to use
HMAC algorithm
Configured PSK to derive the retained PSK from
Length of configured_key
TLS PSK identity to return

Derives a retained PSK as specified in the NVMe TCP Transport Specification 1.3, section 3.6.1.3, and generates the corresponding TLS PSK identity.

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

0 on success, negative error code otherwise.

libnvmf_generate_tls_key_identity October 2026

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