kcapi_md_init - initialize cipher handle
Contents
Arguments
handle
[out] cipher handle filled during the call
ciphername
[in] kernel crypto API cipher name as specified in /proc/cryptoflags
[in] flags specifying the type of cipher handle
Copyright
libkcapi Manual 1.5.0 April 2024 KCAPI_MD_INIT(3)
Description
This function provides the initialization of a (keyed) message digest handle and establishes the
connection to the kernel.
On success, a pointer to kcapi_handle object is returned in *handle. Function kcapi_md_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
Name
kcapi_md_init - initialize cipher handle
Synopsis
intkcapi_md_init(structkcapi_handle**handle,constchar*ciphername,uint32_tflags);
