-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Spake2+ output arguments size-safe (#14667)
* Make Spake2+ output arguments size-size - Both Spake2p::Mac() and Spake2p::HashFinalize expected properly sized output buffers without ensuring it, leading to possible buffer overruns. - This PR makes it necessary to pass a MutableByteSpan to ensure size is checked, and adds the proper checks throughout Fixes #4189 Testing done: - Updatd unit tests to match and they still pass - Integration tests pass * Restyled by clang-format Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
5 changed files
with
40 additions
and
25 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
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