libnvmf\_context\_set\_crypto(9) libnvme API manual libnvmf\_context\_set\_crypto(9)

# [NAME](#NAME)

libnvmf\_context\_set\_crypto - Set cryptographic parameters for context

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_context\_set\_crypto** **(struct libnvmf\_context \*fctx ,** **const char \*hostkey ,** **const char \*ctrlkey ,** **const char \*keyring ,** **const char \*tls\_key ,** **const char \*tls\_key\_identity );**

# [ARGUMENTS](#ARGUMENTS)

[fctx](#fctx)

Fabrics context

[hostkey](#hostkey)

Host key

[ctrlkey](#ctrlkey)

Controller key

[keyring](#keyring)

Keyring identifier

[tls\_key](#tls_key)

TLS key

[tls\_key\_identity](#tls_key_identity)

TLS key identity

# [DESCRIPTION](#DESCRIPTION)

Sets cryptographic and TLS parameters for the context.

# [RETURN](#RETURN)

0 on success, negative error code otherwise.

libnvmf\_context\_set\_crypto September 2026

---

Document: libnvmf_context_set_crypto-libnvme3(2) from nvme-cli 3.1-r1 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
