polyval_update(9)
π polyval_update(9) β or, "how to feed your hash bestie more data"
okay so this page lives in the Kernel API Manual, and it's all about polyval_update(9) β literally the glow-up function that keeps your POLYVAL context fed. π¦
β¨ NAME β¨
polyval_update β Update a POLYVAL context with message data
π SYNOPSIS π
void polyval_update (struct polyval_ctx *ctx , const u8 *data , size_t
len );
likeβ¦ that's the whole vibe. no return value, it just does the thing. π
πΈ ARGUMENTS πΈ
ctxβ the context you're updating; it must have been initialized first, no cap. an uninitialized ctx is not the main character energy we're going for πdataβ the message data itself, the actual content, the moment. β¨lenβ how longdatais, in bytes. and lowkey the best part: it doesn't need to be block-aligned. feed it whatever size you want, she's not picky π«Ά
π DESCRIPTION π
This can be called any number of times.
(yes bestie, any number. zero, one, fifty, a million. go off. π₯)
π§ CONTEXT π§
Any context. literally any. it's giving flexible. π
π SEE ALSO π
Kernel file ./include/crypto/gf128hash.h, plus the whole friend group:
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_import_blkaligned(9), polyval_export_blkaligned(9), ghash_update(9), ghash_final(9), polyval_final(9), ghash(9), polyval(9)
ngl, if you're callingpolyval_updatebeforepolyval_init, that's on you β the ctx has to be initialized first or the vibes are off. π
and that's the page!! mwah π it lives in ./include/crypto, dated October 2026 β see you in the next man page, bestie ππ¦π
π¦ 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