-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do more DSA parameter sanity checking up front
DSA parameters have a very rigid structure. We can do some checks before we create a lot of `byte[]` to package the data to pack into a different buffer to send to the OS library. Checking primality and any other actual value coherency is left to the underlying cryptographic library, these just filter egregious errors.
- Loading branch information
Showing
2 changed files
with
213 additions
and
13 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