-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cryptoutils: check sizes; constify where possible
checkedSize() makes sure that the passed 64-bit sizes can fit signed int parameters commonly accepted throughout OpenSSL. When the size ends up clamped, the crypto function that uses it will likely either fail (e.g. in case of decryption) or act on the trimmed payload (encryption, digests) but that will be the problem the caller will have to deal with.
- Loading branch information
Alexey Rusakov
committed
Dec 18, 2023
1 parent
6e38fe8
commit 7148dce
Showing
3 changed files
with
86 additions
and
47 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