-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkcs7: make types for creating messages public (#991)
Co-authored-by: Bernd Krietenstein <bernd.krietenstein@gmx.de> Co-authored-by: Tony Arcieri <bascule@gmail.com>
- Loading branch information
1 parent
8518bd3
commit 35b6130
Showing
6 changed files
with
89 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//! `Algorithm Identifier Types` [RFC 5652 § 10.1](https://datatracker.ietf.org/doc/html/rfc5652#section-10.1) | ||
|
||
use der::asn1::SetOfVec; | ||
use spki::AlgorithmIdentifierRef; | ||
|
||
/// ```text | ||
/// DigestAlgorithmIdentifier ::= AlgorithmIdentifier | ||
/// ``` | ||
/// See [RFC 5652 10.1.1](https://datatracker.ietf.org/doc/html/rfc5652#section-10.1.1). | ||
pub type DigestAlgorithmIdentifier<'a> = AlgorithmIdentifierRef<'a>; | ||
|
||
/// ```text | ||
/// DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier | ||
/// ``` | ||
pub type DigestAlgorithmIdentifiers<'a> = SetOfVec<DigestAlgorithmIdentifier<'a>>; | ||
|
||
/// ```text | ||
/// SignatureAlgorithmIdentifier ::= AlgorithmIdentifier | ||
/// ``` | ||
/// See [RFC 5652 10.1.2](https://datatracker.ietf.org/doc/html/rfc5652#section-10.1.2). | ||
pub type SignatureAlgorithmIdentifier<'a> = AlgorithmIdentifierRef<'a>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters