nvme_gen_dhchap_key(2)

nvme_gen_dhchap_key2

Dh-hmac-chap key generation

Usage

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

Arguments

hostnqn

Host NVMe Qualified Name

hmac

HMAC algorithm

key_len

Output key length

secret

Secret to used for digest

key

Generated DH-HMAC-CHAP key

Return

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

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From libnvme-dev 1.13-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.