spu2_hash_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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