Scroll to navigation

nvme_insert_tls_key(9) libnvme API manual nvme_insert_tls_key(9)

NAME

nvme_insert_tls_key - Derive and insert TLS key

SYNOPSIS

long nvme_insert_tls_key (const char *keyring , const char *key_type , const char *hostnqn , const char *subsysnqn , int hmac , unsigned char *configured_key , int key_len );

ARGUMENTS

Keyring to use
Type of the resulting key
Host NVMe Qualified Name
Subsystem NVMe Qualified Name
HMAC algorithm
Configured key data to derive the key from
Length of configured_key

DESCRIPTION

Derives a 'retained' TLS key as specified in NVMe TCP 1.0a and stores it as type key_type in the keyring specified by keyring.

RETURN

The key serial number if the key could be inserted into the keyring or 0 with errno otherwise.

nvme_insert_tls_key February 2024