kcapi_aead_init(3)

kcapi_aead_init3

Initialization of cipher handle

Usage

int kcapi_aead_init(struct kcapi_handle ** handle, const char * ciphername, uint32_t flags);

Arguments

handle

[out] cipher handle filled during the call

ciphername

[in] kernel crypto API cipher name as specified in /proc/crypto

flags

[in] flags specifying the type of cipher handle

Overview

This function initializes an AEAD cipher handle and establishes the connection to the kernel.

On success, a pointer to kcapi_handle object is returned in *handle. Function kcapi_aead_destroy should be called afterwards to free resources.

return 0 upon success; -ENOENT - algorithm not available; -EOPNOTSUPP - AF_ALG family not available; -EINVAL - accept syscall failed -ENOMEM - cipher handle cannot be allocated

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.