polyval_import_blkaligned(9)
π polyval_import_blkaligned(9) π
okay bestie, welcome to the Kernel API Manual, where we're about to import a POLYVAL accumulator like it's the most iconic thing you'll do all day β¨
πΈ NAME πΈ
polyval_import_blkaligned β bestie, this is literally the "Import a POLYVAL accumulator value" function. that's the whole vibe. no cap π
π¦ SYNOPSIS π¦
void polyval_import_blkaligned (struct polyval_ctx *ctx , const struct
polyval_key *key , const struct polyval_elem *acc );
like. look at her. three params, zero drama π
π ARGUMENTS π
ctxβ the context you're initializing. she's getting set up, she's the main character here πkeyβ the key you're importing. β οΈ and listen, this part matters, okay? a pointer to the key gets saved in the context, so the key must live at least as long as the context. like if the key dips out early, everything breaks. the key is in this for the long haul, periodt π«Άaccβ the accumulator value you're importing. this is the whole point of the function, she's the guest of honor π
π DESCRIPTION π
so here's the tea β β this function imports an accumulator that was saved earlier by polyval_export_blkaligned. that's the pairing, iykyk.
and the same key must be used. fr fr. do not swap the key out, that's not the vibe, that's a bug π
β SEE ALSO β
the whole friend group shows up for this one:
- Kernel file
./include/crypto/gf128hash.h struct polyval_elem(9)struct ghash_key(9)struct polyval_key(9)struct ghash_ctx(9)struct polyval_ctx(9)ghash_preparekey(9)polyval_preparekey(9)ghash_init(9)polyval_init(9)polyval_export_blkaligned(9)ghash_update(9)polyval_update(9)ghash_final(9)polyval_final(9)ghash(9)polyval(9)
aaaaand that's the page π§ from ./include/crypto, dated October 2026 β stay slay, stay aligned, and remember bestie: import responsibly πβ¨π
π¦ 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