From 7803ce534ec94dc08b591c8c3bb434f8207a9dde Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Wed, 29 Nov 2023 13:55:44 -0800 Subject: [PATCH] pkcs1v15: expose `RsaSignatureAssociatedOid` (#392) This allows reuse of the `RsaSignatureAssociatedOid` trait to pull implementation of `SignatureAlgorithmIdentifier` in other crates (like `yubihsm.rs`). --- src/pkcs1v15.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pkcs1v15.rs b/src/pkcs1v15.rs index 4600aeb4..aa572c5e 100644 --- a/src/pkcs1v15.rs +++ b/src/pkcs1v15.rs @@ -222,7 +222,7 @@ mod oid { use const_oid::ObjectIdentifier; /// A trait which associates an RSA-specific OID with a type. - pub(crate) trait RsaSignatureAssociatedOid { + pub trait RsaSignatureAssociatedOid { /// The OID associated with this type. const OID: ObjectIdentifier; } @@ -258,6 +258,8 @@ mod oid { } } +pub use oid::RsaSignatureAssociatedOid; + #[cfg(test)] mod tests { use super::*;