aead_request_set_tfm(9)
π aead_request_set_tfm(9) π
okay so bestie, gather round β this one lives in the Kernel API Manual and it's genuinely one of the easiest glow-ups in the whole crypto corner of the kernel. no cap.
β¨ NAME β¨
aead_request_set_tfm β swaps out the cipher handle reference inside a request, i.e. the official "update cipher handle reference in request" moment π
π¦ SYNOPSIS π¦
void aead_request_set_tfm (struct aead_request *req , struct crypto_aead
*tfm );
like, yes, that's the whole thing. she's small but she's doing something π
πΈ ARGUMENTS πΈ
reqβ the request handle you're about to mess with. this is the one getting modified, so she's the main character here πtfmβ the cipher handle that "shall be added" to the request handle. it's moving in, basically π«Ά
π§ DESCRIPTION π§
so here's the tea: this function lets the caller replace the existing aead handle inside the request data structure with a different one. that's it. that's the whole vibe. old handle out, new handle in, request stays the same β¨
no cap, it's giving "quick wardrobe change mid-scene" and honestly? obsessed π
π 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_alloc(9)aead_request_free(9)aead_request_set_callback(9)aead_request_set_crypt(9)aead_request_set_ad(9)
like a whole friend group. read them all, iykyk ππ₯
fr fr though β every single one of these is a real page, don't skip the squad π
and that's the whole page, bestie π this cutie ships from ./include/crypto and the version stamp says October 2026 β so like, mark your calendar, 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