s5p_hash_prepare_request(9)
π s5p_hash_prepare_request(9) π
okay so bestie, welcome to the Kernel API Manual β this one lives in the kernel and it's called s5p_hash_prepare_request, and honestly? it's giving "get your request ready before the real work starts" β¨
πΈ NAME πΈ
s5p_hash_prepare_request β prepare request for processing π
β SYNOPSIS β
int s5p_hash_prepare_request (struct ahash_request *req , bool update );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
reqβ AHASH request π that's the request we're prepping, bestieupdateβtrueif UPDATE op β (literally just a bool telling us it's an update)
π₯ DESCRIPTION π₯
okay so two things, and you gotta know both of them, iykyk:
Note 1: we can have update flag _and_ final flag at the same time. yes, both. at once. iconic behavior honestly π
Note 2: we enter here when digcnt > BUFLEN (= HASH_BLOCK_SIZE) or either req->nbytes or ctx->bufcnt + req->nbytes is > BUFLEN or we have final op π
like, one of those conditions hits and we're in, periodt π«Ά
π§ SEE ALSO π§
Kernel file ./drivers/crypto/s5p-sss.c β plus the whole friend group:
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_write_ctrl(9)s5p_hash_xmit_dma(9)s5p_hash_copy_sgs(9)s5p_hash_copy_sg_lists(9)s5p_hash_prepare_sgs(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)
ngl, that SEE ALSO list is a whole squad and they're all slaying in ./drivers/crypto π
k bye bestie, this page is from ./drivers/crypto, dated October 2026 β drink some water, run your dmesg, and stan the kernel πβ¨
π¦ 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