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