hchacha_block_generic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 (20 or 12; 20 is 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:


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