Skip to content

RsaPssParams and RsaOaepParams fixes - #1010

Merged
tarcieri merged 2 commits into
RustCrypto:masterfrom
lumag:pkcs1-params
Apr 18, 2023
Merged

RsaPssParams and RsaOaepParams fixes#1010
tarcieri merged 2 commits into
RustCrypto:masterfrom
lumag:pkcs1-params

Conversation

@lumag

Copy link
Copy Markdown
Contributor
  • 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 <dmitry.baryshkov@linaro.org>
@lumag

Copy link
Copy Markdown
ContributorAuthor

@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).

Comment threadpkcs1/src/params.rs Outdated
Comment threadpkcs1/tests/params.rs
@tarcieri

Copy link
Copy Markdown
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 <dmitry.baryshkov@linaro.org>
@tarcieri
tarcieri merged commit 8c62e09 into RustCrypto:masterApr 18, 2023
@tarcieritarcieri mentioned this pull request Apr 18, 2023
@lumag
lumag deleted the pkcs1-params branch April 18, 2023 15:03
@lumag

Copy link
Copy Markdown
ContributorAuthor

@tarcieri thank you!

baloo added a commit to baloo/formats that referenced this pull request May 23, 2024
baloo added a commit to baloo/formats that referenced this pull request May 23, 2024
Sign up for freeto 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

@lumag@tarcieri