handle_aead_req(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME β€” handle_aead_req(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for handle_aead_req(9). Its whole job is to submit a SPU request message for the next chunk of the current AEAD request. That's the assignment. That's the vibe. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int handle_aead_req (struct iproc_reqctx_s *rctx );

πŸŽ€ ARGUMENTS πŸŽ€

  • rctx β€” Crypto request context. That's the one and only argument, and yes she's essential. πŸ’…

✨ DESCRIPTION ✨

okay so unlike other operation types, we assume the length of the request fits in a single SPU request message. aead_enqueue makes sure this is true. no cap. The comments for other op types regarding threads applies here as well β€” same energy, same rules. 🫢

Also, unlike incremental hash ops β€” where the spu returns the entire hash for truncated algs like sha-224 β€” the SPU returns just the truncated hash in response to aead requests. So digestsize is always ctx->digestsize here. That's the whole tea. πŸ“

πŸ”₯ RETURN πŸ”₯

  • -EINPROGRESS: crypto request has been accepted and result will be returned asynchronously. Any other value indicates an error.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/crypto/bcm/cipher.c plus this whole iconic squad:

β€” signed, sealed, slayed by ./drivers/crypto/bcm Β· October 2026 Β· handle_aead_req(9) πŸ’…

πŸ“¦ where this page comes from