KCAPI_AEAD_STREAM_OP(3)
β¨ KCAPI_AEAD_STREAM_OP β¨
okay bestie, gather round, because today we're talking about kcapi_aead_stream_op from the libkcapi crew β it's a section 3 library girlie and she is literally the one who hands you back your processed data. stream edition. π
πΈ NAME πΈ
kcapi_aead_stream_op β obtain processed data (stream)
π¦ SYNOPSIS π¦
ssize_t kcapi_aead_stream_op(struct kcapi_handle * handle,
struct iovec * iov, size_t iovlen);
π ARGUMENTS π
handleβ [in] the cipher handle. your main character. the whole vibe depends on her.iovβ [out] a scatter/gather list pointing at the buffers that are gonna get filled with the resulting data from a cipher operation. so like, she's not reading from these, she's blessing them with output. π«Άiovlenβ [in] the number ofoutiovscatter/gather list elements. yes,outiov, that's the actual spelling in the docs, we don't make the rules, we just respect them. π
π DESCRIPTION π
so here's the tea. this function may cause the caller to sleep π΄ if the kernel buffer holding the data is empty. it's not ghosting you, it's just napping. the process will get woken up once more data shows up β and that data arrives by calling kcapi_cipher_stream_update. so basically: no data, no vibes, we wait.
π¨ important note bestie: 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. she gives you whole blocks only, periodt. the leftover partial block gets left on read. π
and the return value, because we love a girl who communicates:
- on success: the number of bytes obtained from the kernel. slay. β
- on error: a negative errno-style error code. not slay, but informative. π
π AUTHOR π
Stephan Mueller <smueller@chronox.de> β Author.
(we stan a documented legend β¨)
π COPYRIGHT π
libkcapi Manual 1.5.0, July 2025 β and that's the whole copyright section, no cap.
π sign-off time: this page came to you straight from the libkcapi Manual, version 1.5.0, dated July 2025, filed underKCAPI_AEAD_STREAM_OP(3). read her, love her, callkcapi_cipher_stream_updatebefore you expect anything. bye bestie, go encrypt something iconic ππ¦π
π¦ 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