Skip to content

Commit

Permalink
spki: add AlgorithmIdentifierWithOid (#986)
Browse files Browse the repository at this point in the history
Type alias for `AlgorithmIdentifier<ObjectIdentifier>`
  • Loading branch information
tarcieri authored Apr 5, 2023
1 parent 47b5d98 commit 91e9607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions spki/src/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ where
/// `AlgorithmIdentifier` reference which has `AnyRef` parameters.
pub type AlgorithmIdentifierRef<'a> = AlgorithmIdentifier<AnyRef<'a>>;

/// `AlgorithmIdentifier` with `ObjectIdentifier` parameters.
pub type AlgorithmIdentifierWithOid = AlgorithmIdentifier<ObjectIdentifier>;

/// `AlgorithmIdentifier` reference which has `Any` parameters.
#[cfg(feature = "alloc")]
pub type AlgorithmIdentifierOwned = AlgorithmIdentifier<Any>;
Expand Down
2 changes: 1 addition & 1 deletion spki/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 91e9607

Please sign in to comment.