-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for pkcs1 oaep sha256 (#206)
Motivation Add RSA OAEP-sha256 support in addition to the increasingly aged SHA-1 implementation. Modifications * Add a `Digest` enum to `_RSA.Encryption.Padding` * Add a digest associated type to the `.pkcs1_oaep` padding enum case to allow us to distinguish different digest hash functions. * Add a `PKCS1_OAEP_SHA256` public static let to allow users to use the new hash function. * Enable SHA-256 RSA encryption tests Result * Support for RSA OAEP-sha256
- Loading branch information
Showing
5 changed files
with
446 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
Oops, something went wrong.