Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splits up the `PaddingScheme` enum into four structs, named after the previous variants of the struct (adopting capitalization from the Rust API guidelines): - `oaep::Oaep` - `pkcs1v15::{Pkcs1v15Encrypt, Pkcs1v15Sign}` - `pss::Pss` All of these are re-exported from the toplevel. Each of these structs impls one or more of the following traits: - `PaddingScheme`: used for encryption - `SignatureScheme`: used for signing The `PaddingScheme` constructors have been remapped as follows: - `new_oaep` => `Oaep::new` - `new_oaep_with_label` => `Oaep::new_with_label` - `new_oaep_with_mgf_hash` => `Oaep::new_with_mgf_hash` - `new_oaep_with_mgf_hash_with_label` => `Oaep::new_with_mgf_hash_and_label` - `new_pkcs1v15_encrypt` => `Pkcs1v15Encrypt` - `new_pkcs1v15_sign` => `Pkcs1v15Sign::new` - `new_pkcs1v15_sign_raw` => `Pkcs1v15Sign::new_raw` - `new_pss` => `Pss::{new, new_blinded}` - `new_pss_with_salt` => `Pss::{new_with_salt new_blinded_with_salt}`
- Loading branch information
Showing
6 changed files
with
438 additions
and
373 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
Oops, something went wrong.