Commit 6991356
committed
encryption/aead: document why XChaCha20-Poly1305 stays on RustCrypto
Record the security decision so no future session naively "wires the AEAD
hot path through ndarray::simd::chacha20_keystream" and ends up hand-
composing HChaCha20 + Poly1305 + the AEAD framing (the roll-your-own-AEAD
footgun). The accelerated keystream primitive is trusted and available for
raw-stream use sites that already own a vetted MAC; this authenticated AEAD
is not one of them and keeps the vetted RustCrypto XChaCha20Poly1305.
Doc-only; encryption crate 23/23 green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K6pT32kk6pnuAAqR3JiYqu1 parent 22c16de commit 6991356
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
| |||
0 commit comments