pkcs1v15: expose RsaSignatureAssociatedOid
(#392)
This allows reuse of the `RsaSignatureAssociatedOid` trait to pull implementation of `SignatureAlgorithmIdentifier` in other crates (like `yubihsm.rs`).
This commit is contained in:
parent
7341cd0159
commit
7803ce534e
@ -222,7 +222,7 @@ mod oid {
|
|||||||
use const_oid::ObjectIdentifier;
|
use const_oid::ObjectIdentifier;
|
||||||
|
|
||||||
/// A trait which associates an RSA-specific OID with a type.
|
/// A trait which associates an RSA-specific OID with a type.
|
||||||
pub(crate) trait RsaSignatureAssociatedOid {
|
pub trait RsaSignatureAssociatedOid {
|
||||||
/// The OID associated with this type.
|
/// The OID associated with this type.
|
||||||
const OID: ObjectIdentifier;
|
const OID: ObjectIdentifier;
|
||||||
}
|
}
|
||||||
@ -258,6 +258,8 @@ mod oid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub use oid::RsaSignatureAssociatedOid;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user