STRUCT QCE_SHA_REQCTX(9)
π¦ 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
- 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