KCAPI_CIPHER_STREAM_(3) | Programming Interface | KCAPI_CIPHER_STREAM_(3) |
NAME¶
kcapi_cipher_stream_init_dec - start a decryption operation (stream)
SYNOPSIS¶
ssize_t kcapi_cipher_stream_init_dec(struct kcapi_handle * handle, const uint8_t * iv, struct iovec * iov, size_t iovlen);
ARGUMENTS¶
handle
iv
iov
iovlen
DESCRIPTION¶
A stream decryption operation is started with this call. Multiple successive kcapi_cipher_stream_update function calls can be invoked to send more ciphertext data to be decrypted. The kernel buffers the input until kcapi_cipher_stream_op picks up the decrypted data. Once ciphertext is decrypted during the kcapi_cipher_stream_op it is removed from the kernel buffer.
The function calls of kcapi_cipher_stream_update and kcapi_cipher_stream_op can be mixed, even by multiple threads of an application.
The IV buffer must be exactly kcapi_cipher_ivsize bytes in size.
return number of bytes sent to the kernel upon success; a negative errno-style error code if an error occurred
AUTHOR¶
Stephan Mueller <smueller@chronox.de>
COPYRIGHT¶
March 2023 | libkcapi Manual 1.4.0 |