-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align internal SHAKE buffer when using it as []uint64
The Go runtime assumes that a pointer to a type is aligned on the size of that type. We cast a [N]byte to []uint64, which breaks this assumption. Thus allocate the original [N]byte as a [N/8]uint64 instead. Fixes #89 Cf. the same issue and patch in upstream: patch https://go-review.googlesource.com/c/crypto/+/203837/ issue golang/go#35173
- Loading branch information
Showing
3 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters