| 1 |
.TH "nvme_import_tls_key_versioned" 9 "nvme_import_tls_key_versioned" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_import_tls_key_versioned \- Import a TLS key |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "unsigned char *" nvme_import_tls_key_versioned |
| 6 |
.BI "(const char *encoded_key " "," |
| 7 |
.BI "unsigned char *version " "," |
| 8 |
.BI "unsigned char *hmac " "," |
| 9 |
.BI "size_t *key_len " ");" |
| 10 |
.SH ARGUMENTS |
| 11 |
.IP "encoded_key" 12 |
| 12 |
TLS key in PSK interchange format |
| 13 |
.IP "version" 12 |
| 14 |
Indicated the representation of the TLS PSK |
| 15 |
.IP "hmac" 12 |
| 16 |
HMAC algorithm used to transfor the configured |
| 17 |
PSK in a retained PSK |
| 18 |
.IP "key_len" 12 |
| 19 |
Length of the resulting key data |
| 20 |
.SH "DESCRIPTION" |
| 21 |
Imports \fIkey_data\fP in the PSK Interchange format as defined in section |
| 22 |
3.6.1.5 of the NVMe TCP Transport specification. |
| 23 |
.SH "RETURN" |
| 24 |
The raw data of the PSK or NULL with errno set on error. It is |
| 25 |
the responsibility of the caller to free the returned string. |