-
Notifications
You must be signed in to change notification settings - Fork 163
AssociatedAlgorithmIdentifier implementation #278
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
Conversation
Thanks! Could you possibly 1) make the ID string consts at the top of the file, and 2) put some links in the comments for where the strings come from? |
5d63864
to
3ca392b
Compare
5fb4f89
to
ceb637c
Compare
@baloo this PR has support for PKCS1v15. Could you please check whether it works for you? |
Yeah, I was missing the blanket impl for |
#[cfg(feature = "sha2")] | ||
impl RsaSignatureAssociatedOid for sha2::Sha224 { | ||
const OID: ObjectIdentifier = | ||
const_oid::ObjectIdentifier::new_unwrap("1.2.840.113549.1.1.14"); |
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.
const_oid::ObjectIdentifier::new_unwrap("1.2.840.113549.1.1.14"); | |
const_oid::db::rfc5912::SHA_224_WITH_RSA_ENCRYPTION |
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.
Yes, this was bugging me too. But I think the overall design now is not to add a dependency on const-oid/db
.
@tarcieri ?
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.
At some point we could probably consider using the db in this crate, though it does add to compile times a little bit.
c389a1e
to
4170b19
Compare
@tarcieri |
@lumag already in progress: RustCrypto/formats#983 |
Thanks! didn't notice it. |
Ugh. @tarcieri Another request, but now for pkcs1, to get |
…d PSS keys Allow getting the algorithm identifiers for signing keys Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
@tarcieri thank you! |
This is an implementation of a trait defined at RustCrypto/formats#954