---
name: "nvme_import_tls_key_versioned"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_import_tls_key_versioned"
---

# nvme\_import\_tls\_key\_versioned(2)

Import a TLS key

## NAME

nvme\_import\_tls\_key\_versioned - Import a TLS key

## SYNOPSIS

**unsigned char \* nvme\_import\_tls\_key\_versioned** **(const char \*encoded\_key** *,* **unsigned char \*version** *,* **unsigned char \*hmac** *,* **size\_t \*key\_len** *);*

## ARGUMENTS

- encoded\_key

  TLS key in PSK interchange format

- version

  Indicated the representation of the TLS PSK

- hmac

  HMAC algorithm used to transfor the configured PSK in a retained PSK

- key\_len

  Length of the resulting key data

## DESCRIPTION

Imports *key\_data* in the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport specification.

## RETURN

The raw data of the PSK or NULL with errno set on error. It is the responsibility of the caller to free the returned string.
