KCAPI_AEAD_INIT(3) | Programming Interface | KCAPI_AEAD_INIT(3) |
kcapi_aead_init - initialization of cipher handle
int kcapi_aead_init(struct kcapi_handle ** handle, const char * ciphername, uint32_t flags);
handle
ciphername
flags
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
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |