diff --git a/spki/src/algorithm.rs b/spki/src/algorithm.rs index b0e08b5b3..5f4b5e8c2 100644 --- a/spki/src/algorithm.rs +++ b/spki/src/algorithm.rs @@ -88,6 +88,9 @@ where /// `AlgorithmIdentifier` reference which has `AnyRef` parameters. pub type AlgorithmIdentifierRef<'a> = AlgorithmIdentifier>; +/// `AlgorithmIdentifier` with `ObjectIdentifier` parameters. +pub type AlgorithmIdentifierWithOid = AlgorithmIdentifier; + /// `AlgorithmIdentifier` reference which has `Any` parameters. #[cfg(feature = "alloc")] pub type AlgorithmIdentifierOwned = AlgorithmIdentifier; diff --git a/spki/src/lib.rs b/spki/src/lib.rs index 2ac8d9d12..026109c29 100644 --- a/spki/src/lib.rs +++ b/spki/src/lib.rs @@ -47,7 +47,7 @@ mod traits; mod fingerprint; pub use crate::{ - algorithm::{AlgorithmIdentifier, AlgorithmIdentifierRef}, + algorithm::{AlgorithmIdentifier, AlgorithmIdentifierRef, AlgorithmIdentifierWithOid}, error::{Error, Result}, spki::{SubjectPublicKeyInfo, SubjectPublicKeyInfoRef}, traits::{AssociatedAlgorithmIdentifier, DecodePublicKey, SignatureAlgorithmIdentifier},