table of contents
| nvme_insert_tls_key_compat(2) | libnvme API manual | nvme_insert_tls_key_compat(2) |
NAME¶
nvme_insert_tls_key_compat - Derive and insert TLS key
SYNOPSIS¶
long nvme_insert_tls_key_compat (const char *keyring , const char *key_type , const char *hostnqn , const char *subsysnqn , int version , int hmac , unsigned char *configured_key , int key_len );
ARGUMENTS¶
DESCRIPTION¶
Derives a 'retained' TLS key as specified in NVMe TCP 1.0a (if version s set to '0') or NVMe TP8028 (if version is set to '1) and stores it as type key_type in the keyring specified by keyring. This version differs from nvme_insert_tls_key_versioned in that it uses the original implementation for HKDF Expand-Label which does not prefix the 'info' and 'label' strings with the length.
RETURN¶
The key serial number if the key could be inserted into the keyring or 0 with errno otherwise.
| nvme_insert_tls_key_compat | December 2025 |