KCAPI_AKCIPHER_STREA(3)
β¨ NAME β¨
kcapi_akcipher_stream_op β bestie, this is the one that goes and obtains your processed data π«Ά (the stream kind, obvs)
πΈ SYNOPSIS πΈ
ssize_t kcapi_akcipher_stream_op(struct kcapi_handle * handle,
struct iovec * iov, size_t iovlen);
π ARGUMENTS π
handleβ [in] the cipher handle, your little main character πiovβ [in/out] a scatter/gather list pointing at the buffers that are gonna get filled with the resulting data from a cipher operation β¨iovlenβ [in] how many scatter/gather list elements there are π’
π DESCRIPTION π
okay so listen π β you can call this thing interleaved with kcapi_akcipher_stream_update to go fetch the processed data. they're a duo, they work together, it's giving dynamic duo energy π¦
heads up bestie: this function may cause the caller to sleep π΄ if the kernel buffer holding the data is empty. like, it'll just nap. the process gets woken up once more data is sent by calling kcapi_cipher_stream_update. so basically it's waiting for its friend to text back π
also, NOT ME FORGETTING THIS PART β when you supply buffers that are not a multiple of block size, the buffers will only be filled up to the maximum number of full block sizes that fit into the buffer. so like, partial blocks just get left on read π
and on the return tip: you get the number of bytes obtained from the kernel upon success π β or a negative errno-style error code if something went wrong π
π AUTHOR π
Stephan Mueller <smueller@chronox.de> Author. (yes the whole author, iconic, we stan π«Ά)
π COPYRIGHT π
that's the libkcapi Manual 1.5.0, dated July 2025 β literally the whole vibe, no cap, periodt π β¨ bye bestie, go process some streams π¦
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms