kcapi_md_init
initialize cipher handle
- Provided by: libkcapi-dev (Version: 1.4.0-1ubuntu4)
- Source: libkcapi
- Report a bug
initialize cipher handle
int kcapi_md_init(struct kcapi_handle ** handle, const char * ciphername, uint32_t flags);
handle
ciphername
flags
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
Stephan Mueller <smueller@chronox.de>