.TH "libnvmf_import_tls_key" 9 "libnvmf_import_tls_key" "October 2026" "libnvme API manual" LINUX .SH NAME libnvmf_import_tls_key \- Decode a PSK from the PSK interchange format .SH SYNOPSIS .B "int" libnvmf_import_tls_key .BI "(struct libnvme_global_ctx *ctx " "," .BI "const char *encoded_key " "," .BI "int *key_len " "," .BI "enum libnvmf_hmac_alg *hmac " "," .BI "unsigned char **key " ");" .SH ARGUMENTS .IP "ctx" 12 struct libnvme_global_ctx object .IP "encoded_key" 12 PSK in PSK interchange format .IP "key_len" 12 Length of the decoded PSK to return .IP "hmac" 12 Hash function recorded in \fIencoded_key\fP to return .IP "key" 12 Decoded PSK to return .SH "DESCRIPTION" Decodes \fIencoded_key\fP from the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport Specification 1.3. It is the responsibility of the caller to free the returned buffer. .SH "RETURN" 0 on success, negative error code otherwise.