Uh oh!
There was an error while loading. Please reload this page.
AssociatedAlgorithmIdentifier implementation - #278
Conversation
rozbb
commented
Mar 27, 2023
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? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5d63864 to
3ca392bCompareUh oh!
There was an error while loading. Please reload this page.
5fb4f89 to
ceb637cComparelumag
commented
Apr 3, 2023
@baloo this PR has support for PKCS1v15. Could you please check whether it works for you? |
baloo
commented
Apr 3, 2023
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.
| 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.
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.
At some point we could probably consider using the db in this crate, though it does add to compile times a little bit.
tarcieri
commented
Apr 3, 2023
Uh oh!
There was an error while loading. Please reload this page.
c389a1e to
4170b19Comparelumag
commented
Apr 4, 2023
@tarcieri |
tarcieri
commented
Apr 4, 2023
@lumag already in progress: RustCrypto/formats#983 |
lumag
commented
Apr 4, 2023
Thanks! didn't notice it. |
lumag
commented
Apr 5, 2023
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>
lumag
commented
Apr 5, 2023
@tarcieri thank you! |
Implement associated AlgorithmIdentifier traits for PKCS1v15 and PSS keys Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This is an implementation of a trait defined at RustCrypto/formats#954