Skip to content

Conversation

@lumag
Copy link
Contributor

@lumag lumag commented Apr 18, 2023

  • Use NULL parameters for digest params (as required by mozilla)
  • Add functions to construct known-good parameters.

Obviously Mozilla policy insists on having NULL parameters for MD/SHA
algorithm identifiers. Change RsaPssParams/RsaOaepParams defaults to
use NULL instead of empty parameters.

Signed-off-by: Dmitry Baryshkov <[email protected]>
@lumag
Copy link
Contributor Author

lumag commented Apr 18, 2023

@tarcieri if possible, could you please cut the pkcs1 release afterwards?
I'd like to use this in RSA crate to fix issues in #1007 (ugh).

@tarcieri
Copy link
Member

This looks mostly ok though I'm a bit curious about the usage of &'a dyn AsRef<[u8]> as opposed to &'a impl AsRef<[u8]> or just &'a [u8]

Implement RsaPssParams::new() and RsaOaepParams::new(), two functions to
generate correct parameters for the provided Digest and data.

Signed-off-by: Dmitry Baryshkov <[email protected]>
@tarcieri tarcieri merged commit 8c62e09 into RustCrypto:master Apr 18, 2023
@tarcieri tarcieri mentioned this pull request Apr 18, 2023
@lumag lumag deleted the pkcs1-params branch April 18, 2023 15:03
@lumag
Copy link
Contributor Author

lumag commented Apr 18, 2023

@tarcieri thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants