SIGN IN SIGN UP

gh-135759: consistently reject negative sizes in SHAKE digests (#135767)

Passing a negative digest length to `_hashilb.HASHXOF.[hex]digest()` now
raises a ValueError instead of a MemoryError or a SystemError. This makes
the behavior consistent with that of `_sha3.shake_{128,256}.[hex]digest`.
B
Bénédikt Tran committed
7c4361564c3881946a5eca677607b4ffec0a566d
Parent: 13cac83
Committed by GitHub <noreply@github.com> on 6/21/2025, 9:43:30 AM