STRUCT QCE_SHA_REQCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

okay so bestie, welcome to struct qce_sha_reqctx(9) β€” this is the little struct from the Kernel API Manual that holds private ahash objects per request πŸ’… like, it's literally the per-request hidey-hole for sha stuff and it's iconic for it.


✨ SYNOPSIS ✨

struct qce_sha_reqctx {
    u8 buf[QCE_SHA_MAX_BLOCKSIZE];
    u8 tmpbuf[QCE_SHA_MAX_BLOCKSIZE];
    u8 digest[QCE_SHA_MAX_DIGESTSIZE];
    unsigned int buflen;
    unsigned long flags;
    struct scatterlist *src_orig;
    unsigned int nbytes_orig;
    int src_nents;
    __be32 byte_count[2];
    u64 count;
    bool first_blk;
    bool last_blk;
    struct scatterlist sg[2];
    u8 *authkey;
    unsigned int authklen;
    struct scatterlist result_sg;
};

no cap, that's the whole vibe right there 🫢


πŸŽ€ MEMBERS πŸŽ€

okay bestie, time for the member-by-member vibe check, every single one, no skipping πŸ‘‘

  • buf β€” used during update, import and export. like, it's booked and busy in all three phases fr fr πŸ’–
  • tmpbuf β€” buffer for internal use. the private little scratch space, we don't ask questions 🌸
  • digest β€” calculated digest buffer. this is where the actual digest ends up living ✨
  • buflen β€” length of the buffer. the buffer's length, she's exactly what she says on the tin πŸ’…
  • flags β€” operation flags. the little flag field for the operation, lowkey essential πŸ¦‹
  • src_orig β€” original request sg list. the source scatterlist from the original request, preserved πŸ’œ
  • nbytes_orig β€” original request number of bytes. the byte count of the original request, kept safe πŸ™ˆ
  • src_nents β€” source number of entries. how many entries the source has πŸ“
  • byte_count β€” byte count. it's giving exactly that πŸŽ€
  • count β€” save count in states during update, import and export. yes she also shows up in update, import and export, main character energy for real ⭐
  • first_blk β€” is it the first block. a whole bool dedicated to that question πŸ’€
  • last_blk β€” is it the last block. same energy, opposite end πŸ”₯
  • sg β€” used to chain sg lists. the scatterlist chaining girlie 🌈
  • authkey β€” pointer to auth key in sha ctx. just a pointer, pointing respectfully 🫢
  • authklen β€” auth key length. the length of that auth key, periodt πŸ‘‘
  • result_sg β€” scatterlist used for result buffer. the scatterlist for the result buffer, and that's the whole tea 🧚

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/crypto/qce/sha.h β€” go read it bestie, iykyk πŸ’–

and that's the page!! sign-off time: this lil beauty lives under ./drivers/crypto/qce and the date on it is October 2026 β€” slay, ate, no crumbs πŸŒŸπŸ’…

πŸ“¦ where this page comes from