Expand description
§RustCrypto: PKCS#7 (Cryptographic Messages)
Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #7: Cryptographic Message Syntax v1.5 (RFC 5652 and RFC 8933).
§🚨 DEPRECATED! 🚨
The pkcs7
crate is deprecated and will not receive further releases.
Please migrate to the following instead:
- For Cryptographic Message Syntax (CMS): use the
cms
crate. - For PKCS#7 block padding: use
block_padding::Pkcs7
See #1045 for more information.
§Minimum Supported Rust Version
This crate requires Rust 1.65 at a minimum.
We may change the MSRV in the future, but it will be accompanied by a minor version bump.
§License
Licensed under either of:
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Modules§
- algorithm_
identifier_ types Algorithm Identifier Types
RFC 5652 § 10.1- certificate_
choices CertificateChoices
RFC 5652 10.2.2- cms_
version CMSVersion
RFC 5652 § 10.2.5- data_
content data
content type RFC 5652 § 4- encapsulated_
content_ info encapsulated-data
content type RFC 5652 § 5.2- encrypted_
data_ content encrypted-data
content type RFC 5652 § 8- enveloped_
data_ content enveloped-data
content type RFC 5652 § 6- revocation_
info_ choices RevocationInfoChoices
RFC 5652 10.2.1- signed_
data_ content signed-data
content type RFC 5652 § 5- signer_
info SignerInfo
data type RFC 5652 § 5.3
Enums§
- Content
Info - Content exchanged between entities RFC 5652 § 3
- Content
Type - Indicates the type of content.
Constants§
- PKCS_
7_ DATA_ OID pkcs-7 data
Object Identifier (OID).- PKCS_
7_ DIGESTED_ DATA_ OID pkcs-7 digestedData
Object Identifier (OID).- PKCS_
7_ ENCRYPTED_ DATA_ OID pkcs-7 encryptedData
Object Identifier (OID).- PKCS_
7_ ENVELOPED_ DATA_ OID pkcs-7 signedData
Object Identifier (OID).- PKCS_
7_ OID pkcs-7
Object Identifier (OID).- PKCS_
7_ SIGNED_ AND_ ENVELOPED_ DATA_ OID pkcs-7 signedAndEnvelopedData
Object Identifier (OID).- PKCS_
7_ SIGNED_ DATA_ OID pkcs-7 signedData
Object Identifier (OID).