| 1 |
.TH "nvme_gen_dhchap_key" 9 "nvme_gen_dhchap_key" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_gen_dhchap_key \- DH-HMAC-CHAP key generation |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_gen_dhchap_key |
| 6 |
.BI "(char *hostnqn " "," |
| 7 |
.BI "enum nvme_hmac_alg hmac " "," |
| 8 |
.BI "unsigned int key_len " "," |
| 9 |
.BI "unsigned char *secret " "," |
| 10 |
.BI "unsigned char *key " ");" |
| 11 |
.SH ARGUMENTS |
| 12 |
.IP "hostnqn" 12 |
| 13 |
Host NVMe Qualified Name |
| 14 |
.IP "hmac" 12 |
| 15 |
HMAC algorithm |
| 16 |
.IP "key_len" 12 |
| 17 |
Output key length |
| 18 |
.IP "secret" 12 |
| 19 |
Secret to used for digest |
| 20 |
.IP "key" 12 |
| 21 |
Generated DH-HMAC-CHAP key |
| 22 |
.SH "RETURN" |
| 23 |
If key generation was successful the function returns 0 or |
| 24 |
-1 with errno set otherwise. |