STRUCT S5P_HASH_REQCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_UPDATE or OP_FINAL)
  • digcnt β€” number of bytes processed by HW (without buffer[] ones) πŸ‘€
  • digest β€” digest message or IV for partial result
  • nregs β€” number of HW registers for digest or IV read/write
  • engine β€” bits for selecting type of HASH in SSS block
  • sg β€” sg for DMA transfer
  • sg_len β€” length of sg for DMA transfer
  • sgl β€” sg for joining buffer and req->src scatterlist
  • skip β€” skip offset in req->src for current op
  • total β€” total number of bytes for current request
  • finup β€” keep state for finup or final.
  • error β€” keep track of error.
  • bufcnt β€” number of bytes holded in buffer[]
  • buffer β€” for byte(s) from end of req->src in UPDATE op

🌈 SEE ALSO

peep the kernel file and all these iconic refs, bestie πŸ’…


xoxo bestie πŸ’‹ source/version: ./drivers/crypto; date: October 2026; page: struct s5p_hash_reqctx(9) β€” mwah πŸ’…βœ¨

πŸ“¦ where this page comes from