s5p_hash_write_ctrl(9)
okay bestie π welcome to s5p_hash_write_ctrl(9) from the Kernel API Manual β this is the little prep queen that gets the HASH block in SecSS ready for processing. sheβs not out here starting DMA (more on that later π), sheβs just doing the setup so the hardware can slay. π«Ά
β¨ NAME β¨
s5p_hash_write_ctrl β prepare HASH block in SecSS for processing. thatβs the whole assignment, bestie, and she ate. π
π SYNOPSIS π
void s5p_hash_write_ctrl (struct s5p_aes_dev *dd , size_t length , bool final );
π ARGUMENTS π
ddβ secss device. thatβs the hardware bestie weβre working with.lengthβ length for request. yes, the actual size of the request, periodt.finalβ true if final op. if this is the final operation, sheβstrue; otherwise not. π
π¦ DESCRIPTION π¦
okay so hereβs the tea β: this function prepares the SSS HASH block for processing bytes in DMA mode.
if itβs called after previous updates, it fills up IV words. got it? good.
for final, it calculates and sets lengths for HASH so SecSS can finalize the hash. sheβs tying the bow π.
for partial, it sets the SSS HASH length as 2^63 so it will never be reached, and sets prelow and prehigh to zero. dramatic? yes. effective? also yes. π
big vibe check: this function does not start DMA transfer. not even a little. nope. π
π SEE ALSO π
the whole squad, no skips, no cap:
- Kernel file β
./drivers/crypto/s5p-sss.c struct samsung_aes_variant(9)struct s5p_aes_dev(9)struct s5p_hash_reqctx(9)struct s5p_hash_ctx(9)s5p_set_dma_hashdata(9)s5p_hash_rx(9)s5p_hash_read_msg(9)s5p_hash_write_ctx_iv(9)s5p_hash_write_iv(9)s5p_hash_copy_result(9)s5p_hash_dma_flush(9)s5p_hash_dma_enable(9)s5p_hash_irq_disable(9)s5p_hash_irq_enable(9)s5p_hash_set_flow(9)s5p_ahash_dma_init(9)s5p_hash_xmit_dma(9)s5p_hash_copy_sgs(9)s5p_hash_copy_sg_lists(9)s5p_hash_prepare_sgs(9)s5p_hash_prepare_request(9)s5p_hash_update_dma_stop(9)s5p_hash_finish(9)s5p_hash_finish_req(9)s5p_hash_handle_queue(9)s5p_hash_tasklet_cb(9)s5p_hash_enqueue(9)s5p_hash_update(9)s5p_hash_final(9)s5p_hash_finup(9)s5p_hash_init(9)s5p_hash_digest(9)s5p_hash_cra_init_alg(9)s5p_hash_cra_init(9)s5p_hash_cra_exit(9)s5p_hash_export(9)s5p_hash_import(9)
mwah π β source/version: ./drivers/crypto; date: October 2026. this page is s5p_hash_write_ctrl(9), and sheβs iconic. periodt. π«Άβ¨
π¦ 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