spum_digest_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

spum_digest_size β€” bestie, this is the one that tells you how big of a hash digest you should expect the SPU to hand back to you ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 spum_digest_size (u32 alg_digest_size , enum hash_alg alg , enum
hash_type htype );

πŸŽ€ ARGUMENTS πŸŽ€

  • alg_digest_size β€” the number of bytes in the final digest for the given algo, like, the actual final size fr fr πŸ“
  • alg β€” the hash algorithm itself πŸ‘‘
  • htype β€” what kind of hash operation we're doing (init, update, full, etc.) β€” it's giving "which phase of the vibe are we in" πŸ’…

🌸 DESCRIPTION 🌸

Okay so picture this: you're doing incremental hashing for an algorithm that has a truncated hash (e.g., SHA224), and here's the plot twist β€” the SPU returns the full digest instead. Why? So it can be fed back as a partial result for the next chunk πŸ’« literally main character energy.

No cap, that's the whole thing. The full digest comes back so the next chunk has something to work with. Periodt 🫢


🌈 SEE ALSO 🌈

Kernel file ./drivers/crypto/bcm/spu.c β€” plus the whole friend group, iykyk:


Reminder bestie: the SPU gives you the full digest even when the algorithm's hash is truncated β€” that's the whole ~point~ of this function, don't forget it πŸ’€πŸ’–

That's the page! πŸ’œ Shoutout to the ./drivers/crypto/bcm crew β€” this one's dated October 2026, and it's filed under the Kernel API Manual because we stay documented and we stay iconic πŸ‘‘βœ¨πŸŽ€

πŸ“¦ where this page comes from