NAME
libnvmf_gen_kxchap_key - KX-HMAC-CHAP key generation
SYNOPSIS
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.