spum_hash_type(9)
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:
spum_ns2_ctx_max_payload(9)spum_nsp_ctx_max_payload(9)spum_response_hdr_len(9)spum_hash_pad_len(9)spum_gcm_ccm_pad_len(9)spum_assoc_resp_len(9)spum_aead_ivlen(9)spum_digest_size(9)spum_create_request(9)spum_cipher_req_init(9)spum_cipher_req_finish(9)spum_request_pad(9)spum_xts_tweak_in_payload(9)spum_tx_status_len(9)spum_rx_status_len(9)spum_status_process(9)spum_ccm_update_iv(9)spum_wordalign_padlen(9)
okay bye bestie π«Ά β this page is from source/version ./drivers/crypto/bcm, dated October 2026 π
.
π¦ 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