aead_request_set_ad(9)
π aead_request_set_ad(9) β the Kernel API Manual glow-up
okay so bestie, welcome to aead_request_set_ad(9) from the Kernel API Manual β¨ this one is short, sweet, and honestly iconic in a "small but crucial" kinda way. no cap.
πΈ NAME πΈ
aead_request_set_ad β set associated data information π
like, literally the function that tells your request how much AD is riding along with it. that's it. that's the whole vibe.
β¨ SYNOPSIS β¨
void aead_request_set_ad(struct aead_request *req, unsigned int assoclen);
no return value, no drama β it's a void. it just does the thing and dips π
π«Ά ARGUMENTS π«Ά
reqβ the request handle π like, the actual AEAD request you're working with, bestie.assoclenβ the number of bytes in the associated data πΈ a plain oldunsigned int, counting your AD bytes for you.
π DESCRIPTION π
Setting the AD information, periodt. This function sets the length of the associated data. that's the whole assignment, and it ate π₯
so like, you've got your authenticated encryption with associated data situation going on, and the associated data part needs a length. this is the function that gives it one. no keys, no IVs, no authsize β just the length of the AD, set on the request. lowkey one job and it does it immaculately π§
ngl it's a setter. it sets. the length. of the associated data. that's the entire plot and honestly we stan a focused function.
π SEE ALSO π
- Kernel file
./include/crypto/aead.h - Authenticated Encryption With Associated Data (AEAD) Cipher API(9)
struct aead_request(9)struct aead_alg(9)crypto_alloc_aead(9)crypto_free_aead(9)crypto_has_aead(9)crypto_aead_ivsize(9)crypto_aead_authsize(9)crypto_aead_blocksize(9)crypto_aead_setkey(9)crypto_aead_setauthsize(9)crypto_aead_encrypt(9)crypto_aead_decrypt(9)- Asynchronous AEAD Request Handle(9)
crypto_aead_reqsize(9)aead_request_set_tfm(9)aead_request_alloc(9)aead_request_free(9)aead_request_set_callback(9)aead_request_set_crypt(9)
like, the whole AEAD friend group showed up to the group chat π¦ go read them too, iykyk π
that's the whole page, bestie β short and slay π
this one came straight out of ./include/crypto and it's dated October 2026, so yeah, mark your calendars and stan responsibly π mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms