Skip to content

Commit

Permalink
pkcs1v15: expose RsaSignatureAssociatedOid (#392)
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 authored Nov 29, 2023
1 parent 7341cd0 commit 7803ce5
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 7803ce5

Please sign in to comment.