zynqmp_pm_sha_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ zynqmp_pm_sha_hash(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this one's all about zynqmp_pm_sha_hash, the little function that lets you slide into the SHA engine's DMs and get your hash calculated. let's go πŸŽ€


🌸 NAME 🌸

zynqmp_pm_sha_hash β€” get access to the SHA engine so it can calculate the hash for you, no cap 🧚


πŸ¦‹ SYNOPSIS πŸ¦‹

int zynqmp_pm_sha_hash (const u64 address , const u32 size , const u32
flags );

like, that's the whole signature, copy it exactly bestie πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • address β€” the address of the data, or the address of the output buffer where the hash should be stored. yeah, it's giving dual-purpose main character energy 😭 which one it is depends on your flags, iykyk.
  • size β€” the size of the data fr fr.
  • flags β€” ok this one's the whole vibe, so listen up πŸ‘‘:
    • BIT(0) β€” initializes the csudma driver and SHA3. lowkey iconic detail: with this one, the address and size inputs can be NULL 🫢.
    • BIT(1) β€” calls the Sha3_Update API. this is the one you can call multiple times when your data isn't contiguous β€” spread out data can still slay ✨.
    • BIT(2) β€” gets the final hash of the whole updated data. heads up though: the hash will be overwritten at the provided address with 48 bytes πŸ’€ so don't be surprised.

πŸ”₯ RETURN πŸ”₯

Returns status, either success or error code. that's it, that's the tea β˜•


🌈 SEE ALSO 🌈

kernel file ./drivers/firmware/xilinx/zynqmp-crypto.c β€” go read it if you're obsessed like me πŸ“

and the whole squad of related pages:


okay that's the whole page bestie, u ate that πŸ’–βœ¨ and before u go β€” this lil masterpiece lives in ./drivers/firmware/xilinx, dated October 2026, and it's part of the Kernel API Manual 🌸 mwah, go hash something iconic πŸ’…πŸŽ€

πŸ“¦ where this page comes from