libnvmf_context_set_crypto(9) libnvme API manual libnvmf_context_set_crypto(9)

libnvmf_context_set_crypto - Set cryptographic parameters for context

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 );

Fabrics context
Host key
Controller key
Keyring identifier
TLS key
TLS key identity

Sets cryptographic and TLS parameters for the context.

0 on success, negative error code otherwise.

libnvmf_context_set_crypto September 2026