DOKK / manpages / debian 12 / libnvme-dev / nvme_gen_dhchap_key.2.en
nvme_gen_dhchap_key(2) libnvme API manual nvme_gen_dhchap_key(2)

nvme_gen_dhchap_key - DH-HMAC-CHAP key generation

int nvme_gen_dhchap_key (char *hostnqn , enum nvme_hmac_alg hmac , unsigned int key_len , unsigned char *secret , unsigned char *key );

Host NVMe Qualified Name
HMAC algorithm
Output key length
Secret to used for digest
Generated DH-HMAC-CHAP key

If key generation was successful the function returns 0 or -1 with errno set otherwise.

nvme_gen_dhchap_key January 2023