Expand description
§Supported algorithms
This crate supports several schemes described in [RFC8017]:
- OAEP encryption scheme
- PKCS#1 v1.5 encryption scheme
- PKCS#1 v1.5 signature scheme
- PSS signature scheme
These schemes are described below.
Re-exports§
pub use crate::errors::Error;pub use crate::errors::Result;pub use crate::oaep::Oaep;pub use crate::pkcs1v15::Pkcs1v15Encrypt;pub use crate::pkcs1v15::Pkcs1v15Sign;pub use crate::pss::Pss;pub use rand_core;pub use signature;pub use pkcs1;pub use pkcs8;pub use sha2;
Modules§
- errors
- Error types.
- hazmat
- ⚠️ Low-level “hazmat” RSA functions.
- oaep
- Encryption and Decryption using OAEP padding.
- pkcs1v15
- PKCS#1 v1.5 support as described in RFC8017 § 8.2.
- pss
- Support for the Probabilistic Signature Scheme (PSS) a.k.a. RSASSA-PSS.
- traits
- RSA-related trait definitions.
Structs§
- CrtValue
- Contains the precomputed Chinese remainder theorem values.
- RsaPrivate
Key - Represents a whole RSA key, public and private parts.
- RsaPublic
Key - Represents the public part of an RSA key.