STRUCT S5P_HASH_REQCTX(9)
π NAME
okay bestie, welcome to the struct s5p_hash_reqctx(9) page from the Kernel API Manual β¨ this is literally the HASH request context struct, and it's giving main-character energy fr fr. no cap, every field is here and accounted for π«Ά
β¨ SYNOPSIS
here's the whole struct in all its glory, copied exactly with zero edits:
struct s5p_hash_reqctx {
struct s5p_aes_dev *dd;
bool op_update;
u64 digcnt;
u8 digest[SHA256_DIGEST_SIZE];
unsigned int nregs;
u32 engine;
struct scatterlist *sg;
unsigned int sg_len;
struct scatterlist sgl[2];
unsigned int skip;
unsigned int total;
bool finup;
bool error;
u32 bufcnt;
u8 buffer[];
};
π«Ά Members
ddβ associated device π«Άop_updateβ current request operation (OP_UPDATEorOP_FINAL)digcntβ number of bytes processed by HW (withoutbuffer[]ones) πdigestβ digest message or IV for partial resultnregsβ number of HW registers for digest or IV read/writeengineβ bits for selecting type of HASH in SSS blocksgβ sg for DMA transfersg_lenβ length of sg for DMA transfersglβ sg for joiningbufferandreq->srcscatterlistskipβ skip offset inreq->srcfor current optotalβ total number of bytes for current requestfinupβ keep state for finup or final.errorβ keep track of error.bufcntβ number of bytes holded inbuffer[]bufferβ for byte(s) from end ofreq->srcinUPDATEop
π SEE ALSO
peep the kernel file and all these iconic refs, bestie π
- kernel file
./drivers/crypto/s5p-sss.c struct samsung_aes_variant(9)struct s5p_aes_dev(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_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)
xoxo bestie π source/version: ./drivers/crypto; date: October 2026; page: struct s5p_hash_reqctx(9) β mwah π
β¨
π¦ 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