spum_hash_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie πŸ’– you're reading spum_hash_type(9) from the Kernel API Manual, and it's giving "tiny helper, big main character energy" ✨.


✨ NAME ✨

spum_hash_type β€” Determine the type of hash operation. periodt πŸ’…

🌸 SYNOPSIS 🌸

enum hash_type spum_hash_type (u32 src_sent );

πŸ’– ARGUMENTS πŸ’–

  • src_sent β€” the number of bytes in the current request that have already been sent to the SPU to be hashed 🫢.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: we do not use HASH_TYPE_FULL for requests that fit in a single SPU message. Using FULL causes failures (such as when the string to be hashed is empty) 😭. For similar reasons, we never use HASH_TYPE_FIN. Instead, submit messages as INIT or UPDT and do the hash padding in sw ✨.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/crypto/bcm/spu.c β€” plus these iconic refs, iykyk:


okay bye bestie 🫢 β€” this page is from source/version ./drivers/crypto/bcm, dated October 2026 πŸ’….

πŸ“¦ where this page comes from