hchacha_block_generic(9)
hchacha_block_generic(9) β Kernel API Manual bestie! π β¨ Lowkey iconic, fr fr.
πΈ NAME πΈ
hchacha_block_generic β abbreviated ChaCha core, for XChaCha π« periodt.
β¨ SYNOPSIS β¨
Okay so here's the exact signature, no cap β copy it exactly, iykyk:
void hchacha_block_generic (const struct chacha_state *state , u32
out[HCHACHA_OUT_WORDS] , int nrounds );
π ARGUMENTS π
ngl these are the three things you pass in:
stateβ input state matrix π§outβ the output words π«Άnroundsβ number of rounds (20or12;20is recommended) π₯
π¦ DESCRIPTION π¦
HChaCha is literally the ChaCha equivalent of HSalsa and it's an intermediate step towards XChaCha (see https://cr.yp.to/snuffle/xsalsa-20081128.pdf) π§β¨ It's giving main character energy in the XChaCha pipeline, highkey.
The way that HChaCha works: it skips the final addition of the initial state, and outputs only certain words of the state. π Not me being obsessed with how it only outputs certain words, but okay.
Bestie, important vibe check: it should not be used for streaming directly. π
π SEE ALSO π
Go look at these if you want the full lore:
- Kernel file
./lib/crypto/chacha-block-generic.cπ chacha_block_generic(9)π
Sign-off cuteness: source/version is ./lib/crypto, date is October 2026, and the page is hchacha_block_generic(9). Bye bestie, slay! πβ¨
π¦ 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