KCAPI_AKCIPHER_VERIF(3)
β¨ kcapi_akcipher_verify_aio β¨
okay bestie, welcome to the libkcapi corner of the Programming Interface section β this is kcapi_akcipher_verify_aio(3), and she's here to verify data (asynchronous one shot). no cap. π«Ά
πΈ SYNOPSIS πΈ
ssize_t kcapi_akcipher_verify_aio(struct kcapi_handle * handle,
struct iovec * iniov,
struct iovec * outiov, size_t iovlen,
int access);
that's the whole vibe. one shot, async, no takebacks π
π ARGUMENTS π
handleβ [in] your cipher handle, the main character of this whole operation πiniovβ [in] the head of the scatter-gather list array holding the plaintext πoutiovβ [out] the head of the scatter-gather list of the destination buffers that get filled with ciphertext β¨iovlenβ [in] how many scatter-gather list entries there are, like literally the count πaccessβ [in] the kernel access type, and you have three choices bestie:KCAPI_ACCESS_HEURISTICβ use the internal heuristic for the fastest kernel access πββοΈKCAPI_ACCESS_VMSPLICEβ use vmsplice access πKCAPI_ACCESS_SENDMSGβ sendmsg access π
π¦ DESCRIPTION π¦
so here's the tea: the individual scatter-gather list entries are processed with separate invocations of the given cipher. one at a time, each their own moment. periodt. π₯
now the memory? it should be aligned at the page boundary usingposix_memalign(sysconf(_SC_PAGESIZE)). if it is not aligned at the page boundary, thevmsplicecall may not send all data to the kernel π β that's a real one, not a drill.
and the return value, because we love a good exit story: number of bytes verify upon success; a negative errno-style error code if an error occurred. slay when it works, errno when it doesn't π
π AUTHOR π
- Stephan Mueller
<smueller@chronox.de>β Author. iconic behavior, honestly π
π COPYRIGHT π
libkcapi Manual 1.5.0 Β· July 2025 π§
and that's the whole page bestie, no notes, ate and left no crumbs π
β¨ β this was kcapi_akcipher_verify_aio(3) from the Programming Interface crew, libkcapi Manual 1.5.0, dated July 2025. go verify something cute ππ«Ά
π¦ 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