Overview
ChaCha20 generates a keystream from a key, nonce, and counter, then combines it with plaintext bytes.
Encrypts data with a fast stream cipher built from add-rotate-xor rounds.
Compact metadata for implementation and discovery.
ChaCha20 generates a keystream from a key, nonce, and counter, then combines it with plaintext bytes.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(1)
a = a + b; d = rotate_left(d xor a, 16)Shows one add-rotate-xor step from the repeated ChaCha20 quarter round.
Show keystream blocks combining with plaintext bytes.
ChaCha20 operates in O(n) time and O(1) space within the Stream Cipher family. Key governing relation: a = a + b; d = rotate_left(d xor a, 16). Often compared with AES and HMAC.
What each reference supports for this entry.
Good next jumps from the relationship graph, ranked for useful discovery.
ChaCha20 is a stream cipher alternative to AES-based encryption modes.