aead_request_set_tfm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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