spu2_hash_xlate(9)
πΈ NAME πΈ
Okay so bestie, this is spu2_hash_xlate(9) from the Kernel API Manual β a total main-character little function. Its whole job: convert a hash {alg/mode/type} triple to a SPU2 hash type and mode. Thatβs the vibe. β¨
π SYNOPSIS π
Hereβs the signature, untouched and iconic:
int spu2_hash_xlate (enum hash_alg hash_alg , enum hash_mode hash_mode ,
enum hash_type hash_type , enum spu_cipher_type ciph_type , enum
spu2_hash_type *spu2_type , enum spu2_hash_mode *spu2_mode );
π ARGUMENTS π
hash_alg[in]β hash algorithm value from software enumeration. Itβs giving βtell me which algorithm, bestie.βhash_mode[in]β hash mode value from software enumeration. The mode, as software sees it.hash_type[in]β hash type value from software enumeration. Yes, type. We love a specific triple.ciph_type[in]β cipher type value from software enumeration. Cipher type is riding along too.spu2_type[out]β hash type value used by SPU2 hardware. This is the glow-up output moment.spu2_mode[out]β hash mode value used by SPU2 hardware. And this is the matching hardware-mode output.
β RETURN β
0 if successful. Thatβs it β thatβs the whole listed return. No extra lore, no invented error codes. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/crypto/bcm/spu2.c.
Also the whole friend group, in the exact order the page says: spu2_cipher_xlate(9), spu2_fmd_init(9), spu2_fmd_ctrl0_write(9), spu2_fmd_ctrl1_write(9), spu2_fmd_ctrl2_write(9), spu2_fmd_ctrl3_write(9), spu2_ctx_max_payload(9), spu2_payload_length(9), spu2_response_hdr_len(9), spu2_hash_pad_len(9), spu2_gcm_ccm_pad_len(9), spu2_assoc_resp_len(9), spu2_aead_ivlen(9), spu2_hash_type(9), spu2_digest_size(9), spu2_create_request(9), spu2_cipher_req_init(9), spu2_cipher_req_finish(9), spu2_request_pad(9), spu2_xts_tweak_in_payload(9), spu2_tx_status_len(9), spu2_rx_status_len(9), spu2_status_process(9), spu2_ccm_update_iv(9), spu2_wordalign_padlen(9).
mwah π β this pageβs source/version is ./drivers/crypto/bcm, dated October 2026, and it belongs to spu2_hash_xlate(9). Byeee, go convert that triple! π¦π
π¦ 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