spu_no_incr_hash(9)
π spu_no_incr_hash(9) β from the Kernel API Manual bestie
okay so this is a kernel function, and honestly? it's giving "one job, does it well" energy. it lives in the kernel API manual and it's here to answer exactly one question: is incremental hashing supported or not. that's it. that's the whole vibe. π
πΈ NAME πΈ
spu_no_incr_hash β literally just tells you whether incremental hashing is supported. that's the assignment and it understood it. β¨
π¦ SYNOPSIS π¦
bool spu_no_incr_hash (struct iproc_ctx_s *ctx );
π ARGUMENTS π
ctxβ the crypto session context π«Ά that's it, that's the only thing you pass in.
β¨ DESCRIPTION β¨
so here's the tea, bestie: SPU-2 does not support incremental hashing. nope, not a thing, not happening. π and the manpage is very honest about it β there's a whole note saying we'll have to revisit this and condition on chip revision or device tree entry if future versions do support incremental hash. so likeβ¦ watch this space, iykyk. π
also SPU-M doesn't support incremental hashing of AES-XCBC. not that either. sorry babes. π
π RETURN π
trueβ incremental hashing is not supported πfalseβ otherwise
mind the double negative, bestie, it's literally the entire point of the function name. true means "no incr hash", periodt. β¨
π₯ SEE ALSO π₯
the kernel file you wanna peek at is ./drivers/crypto/bcm/cipher.c β and here's the whole friend group, all in one go:
select_channel(9)spu_skcipher_rx_sg_create(9)spu_skcipher_tx_sg_create(9)handle_skcipher_req(9)handle_skcipher_resp(9)spu_ahash_rx_sg_create(9)spu_ahash_tx_sg_create(9)handle_ahash_req(9)spu_hmac_outer_hash(9)ahash_req_done(9)handle_ahash_resp(9)spu_aead_rx_sg_create(9)spu_aead_tx_sg_create(9)handle_aead_req(9)handle_aead_resp(9)spu_chunk_cleanup(9)finish_req(9)spu_rx_callback(9)skcipher_enqueue(9)aead_gcm_esp_setkey(9)rfc4543_gcm_esp_setkey(9)aead_ccm_esp_setkey(9)spu_functions_register(9)spu_mb_init(9)
ngl this one's a short read, but it's iconic in its own lowkey way. go read the whole squad up there if you want the full picture. π
and that's a wrap, bestie!! this page came from ./drivers/crypto/bcm, dated October 2026 β mwah, slay, go call spu_no_incr_hash(9) responsibly πβπ
π¦ 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