-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkcs1: implement support for PSS Params structure #698
Conversation
11f81a5
to
b9700f9
Compare
@tarcieri simplified the implementation to use |
Add support for parsing and generatign RSA PSS params. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
/// | ||
/// [RFC 8017 Appendix 2.3]: https://datatracker.ietf.org/doc/html/rfc8017#appendix-A.2.3 | ||
#[derive(Clone, Debug, Eq, PartialEq, Sequence)] | ||
pub struct RsaPSSParameters<'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per RFC 430 naming conventions, this should be:
pub struct RsaPSSParameters<'a> { | |
pub struct RsaPssParameters<'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit otherwise looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll go ahead and fix up the name myself
Followup to #698. - Renames `RsaPSSParameters` => `RsaPssParams` - Removes use of the `der` crate's `derive` feature The `rsa` crate curently doesn't need any custom derive, and adding it here would make it a hard requirement. We can consider switching to custom derive in `pkcs1`, but if we do it then it should be wholesale for all types in the crate, not using custom derive for some types and handwritten impls for others.
Followup to #698. - Renames `RsaPSSParameters` => `RsaPssParams` - Removes use of the `der` crate's `derive` feature The `rsa` crate curently doesn't need any custom derive, and adding it here would make it a hard requirement. We can consider switching to custom derive in `pkcs1`, but if we do it then it should be wholesale for all types in the crate, not using custom derive for some types and handwritten impls for others.
Add support for parsing and generatign RSA PSS params.
Signed-off-by: Dmitry Baryshkov dmitry.baryshkov@linaro.org