handle_skcipher_req(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ handle_skcipher_req(9) ✨

okay so real talk β€” this is a page straight out of the Kernel API Manual, bestie, and it's about handle_skcipher_req πŸ’…


🌸 NAME 🌸

handle_skcipher_req β€” submit as much of a block cipher request as fits in a single SPU request message, starting at the current position in the request data πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int handle_skcipher_req (struct iproc_reqctx_s *rctx );

πŸ’– ARGUMENTS πŸ’–

  • rctx β€” the crypto request context 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe: this may be called on the crypto API thread, or β€” and this is the main character moment β€” when a request is so large it must be broken into multiple SPU messages, it gets called on the thread used to invoke the response callback 😭

when requests are broken into multiple SPU messages, we assume subsequent messages depend on previous results, and thus always wait for previous results before submitting the next message ⭐

and because requests are submitted in lock step like this, there is no need to synchronize access to request data structures ✨ periodt.

πŸ‘‘ RETURN πŸ‘‘

  • -EINPROGRESS β€” 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 the whole squad, fr fr:


that's the whole page, no notes πŸ’œ this one lives in ./drivers/crypto/bcm and it's dated October 2026 β€” mwah, go read some kernel source bestie πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from