Skip to content

Commit

Permalink
pkcs1v15: expose RsaSignatureAssociatedOid
Browse files Browse the repository at this point in the history
This allows reuse of the `RsaSignatureAssociatedOid` trait to pull
implementation of `SignatureAlgorithmIdentifier` in other crates (like
`yubihsm.rs`).
  • Loading branch information
baloo committed Nov 28, 2023
1 parent 5d45065 commit 8988123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pkcs1v15.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -258,6 +258,8 @@ mod oid {
}
}

pub use oid::RsaSignatureAssociatedOid;

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 8988123

Please sign in to comment.