zynqmp_pm_sha_hash(9)
β¨ 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 yourflags, 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, theaddressandsizeinputs can beNULLπ«Ά.BIT(1)β calls theSha3_UpdateAPI. 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 providedaddresswith48bytes π 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:
zynqmp_pm_aes_engine(9)xlnx_get_crypto_dev_data(9)versal_pm_aes_key_write(9)versal_pm_aes_key_zero(9)versal_pm_aes_op_init(9)versal_pm_aes_update_aad(9)versal_pm_aes_enc_update(9)versal_pm_aes_enc_final(9)versal_pm_aes_dec_update(9)versal_pm_aes_dec_final(9)versal_pm_aes_init(9)
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
- 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