Scroll to navigation

libnvmf_gen_kxchap_key(2) libnvme API manual libnvmf_gen_kxchap_key(2)

NAME

libnvmf_gen_kxchap_key - KX-HMAC-CHAP key generation

SYNOPSIS

int libnvmf_gen_kxchap_key (struct libnvme_global_ctx *ctx , char *hostnqn , enum libnvmf_hmac_alg hmac , unsigned int key_len , unsigned char *secret , unsigned char *key );

ARGUMENTS

struct libnvme_global_ctx object
Host NVMe Qualified Name
HMAC algorithm
Output key length
Secret to used for digest
Generated KX-HMAC-CHAP key

RETURN

If key generation was successful the function returns 0 or a negative error code otherwise.

libnvmf_gen_kxchap_key October 2026