libnvmf_gen_kxchap_key-libnvme3(2)

libnvmf_gen_kxchap_key-libnvme32

Kx-hmac-chap key generation

Usage

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

ctx

struct libnvme_global_ctx object

hostnqn

Host NVMe Qualified Name

hmac

HMAC algorithm

key_len

Output key length

secret

Secret to used for digest

key

Generated KX-HMAC-CHAP key

Return

If key generation was successful the function returns 0 or a 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.