Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Implement ChaCha20-Poly1305 AEAD (RFC 8439) master
Add pure Rust ChaCha20-Poly1305 authenticated encryption in the crypto crate: - ChaCha20 stream cipher: quarter round, block function (20 rounds), counter-mode encryption with 256-bit key, 96-bit nonce, 32-bit counter - Poly1305 one-time MAC: GF(2^130-5) using 5 limbs of 26 bits, clamped r key, constant-time final reduction - AEAD construction: Poly1305 key generation from ChaCha20 block 0, encrypt-then-MAC with RFC 8439 padding and length encoding - Constant-time tag comparison for secure decryption - 13 tests: RFC 8439 test vectors (§2.1.1, §2.3.2, §2.4.2, §2.5.2, §2.6.2, §2.8.2), tag tamper detection, and round-trip tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 Committer Tangled Date (Mar 7, 2026, 8:50 AM UTC) Commit d548444d d548444d3613c2e0fe11db89f2cd27c48cf3f30c Parent d3541ab8 d3541ab82f06a321bf37f2187858529073789248