You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DartChacha20: block counter wraps past 2^32 instead of failing #233
Low-priority finding, not a security issue in practice.
DartChacha20 in cryptography 2.9.0 keeps going past the 32-bit block counter instead of failing. Starting at block 0xffffffff with a 65-byte message, the last byte is encrypted with the keystream for block 0, so the keystream repeats. RFC 8439 §2.3 defines the counter as "A 32-bit block count parameter", so anything past 0xffffffff is out of range. You need about 256 GiB under one key and nonce to hit it, which is why I'd call it low.
Activity