KCAPI_AKCIPHER_STREA(3)
π KCAPI_AKCIPHER_STREA β kcapi_akcipher_stream_init_vfy π
okay bestie, welcome to the Programming Interface section of the libkcapi manual, page KCAPI_AKCIPHER_STREA(3). this one's about kicking off a signature verification operation, but likeβ¦ the stream version. yes, streaming. we love a slow-burn. π¦
β¨ NAME β¨
kcapi_akcipher_stream_init_vfy β start an signature verification operation (stream) π
πΈ SYNOPSIS πΈ
ssize_t kcapi_akcipher_stream_init_vfy(struct kcapi_handle * handle,
struct iovec * iov,
size_t iovlen);
π ARGUMENTS π
handleβ [in] the cipher handle. your main character. hold onto it. π«Άiovβ [in] scatter/gather list with data to be verified. if you're passing an array of iov entries, this is the pointer to the first iov entry. seesendmsg(2)for the deets on howiovis supposed to be used, fr fr. this pointer may beNULLif there's no data to be verified available at the point of the call. lowkey valid.iovlenβ [in] number of scatter/gather list elements. and listen: ifiovisNULL, this value must be zero. no cap. zero. π
π DESCRIPTION π
a stream signature verification operation gets started with this call. that's the whole vibe. β¨
once you've done that, you can hit up kcapi_akcipher_stream_update multiple successive times to send more plaintext data to be verified. but bestie, the last invocation that supplies data must be done with kcapi_akcipher_stream_update_last. don't skip that one, it's giving final boss energy. π
the kernel buffers the input until kcapi_akcipher_stream_op picks up the verified data. once the plaintext is verified during the kcapi_cipher_stream_op, it gets removed from the kernel buffer. poof. gone. iconic. π§
also!! the function calls of kcapi_akcipher_stream_update and kcapi_akcipher_stream_op can be mixed, even by multiple threads of an application. multitasking queen behavior. π
returns: number of bytes sent to the kernel upon success; a negative errno-style error code if an error occurred. so like, if it's negativeβ¦ something went wrong, and we do NOT stan. π
π AUTHOR π
- Stephan Mueller
<smueller@chronox.de>- Author. yes, THE author. respect the legend. β
π COPYRIGHT π
libkcapi Manual 1.5.0 β July 2025 β and that's the KCAPI_AKCIPHER_STREA(3) page, bestie. go forth and verify those signatures, you absolute icon. mwah. πππ¦π
π¦ 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