Crate pkcs5

Source
Expand description

§RustCrypto: PKCS#5

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #5: Password-Based Cryptography Specification Version 2.1 (RFC 8018).

Documentation

§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.

§Usage

The main API for this crate is the EncryptionScheme enum, which impls the Decode and Encode traits from the der crate, and can be used for decoding/encoding PKCS#5 AlgorithmIdentifier fields.

Re-exports§

pub use der;
pub use scrypt;pbes2

Modules§

pbes1
Password-Based Encryption Scheme 1 as defined in RFC 8018 Section 6.1.
pbes2
Password-Based Encryption Scheme 2 as defined in RFC 8018 Section 6.2.

Structs§

ObjectIdentifier
Object identifier (OID).

Enums§

EncryptionScheme
Supported PKCS#5 password-based encryption schemes.
Error
Error type

Type Aliases§

AlgorithmIdentifierRef
AlgorithmIdentifier reference which has AnyRef parameters.
Result
Result type