1nvme_gen_dhchap_key(9) libnvme API manual nvme_gen_dhchap_key(9)
2
3
4
6 nvme_gen_dhchap_key - DH-HMAC-CHAP key generation
7
9 int nvme_gen_dhchap_key (char *hostnqn , enum nvme_hmac_alg hmac , un‐
10 signed int key_len , unsigned char *secret , unsigned char *key );
11
13 hostnqn Host NVMe Qualified Name
14
15 hmac HMAC algorithm
16
17 key_len Output key length
18
19 secret Secret to used for digest
20
21 key Generated DH-HMAC-CHAP key
22
24 If key generation was successful the function returns 0 or -1 with er‐
25 rno set otherwise.
26
27
28
29April 2022 nvme_gen_dhchap_key nvme_gen_dhchap_key(9)