Simten

ChaCha20 in Hardware

AES needs dedicated CPU instructions to run fast. ChaCha20 was designed to need nothing special: just addition, XOR, and bit rotation, repeated 80 times, on any hardware that exists. The irony: that simplicity makes it unusually elegant in silicon too.

Build the core quarter-round from logic gates, verify it against the RFC 7539 test vector, and see why a cipher designed to escape hardware ends up being one of the cleanest things you can build in gates.

Interactive tutorial/~8 min read/Built with Simten