aead_request_set_ad(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 old unsigned 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 🌈

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