Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sha3: fix cSHAKE initialization for extremely large N ana and or S
While both impractical and unlikely, the multiplication could overflow on 32-bit architectures. The 64-bit architecture case is unaffected by both the maximum length of Go slices being too small to trigger the overflow (everything except s390), and it being safe to assume no machine has more than 2 EiB of memory. Fixes golang/go#66232
- Loading branch information