Crate rsa_oaep_pss

source ·

Structs

An Optimal Asymmetric Encryption Padding scheme object used for encryption or decryption.
An RSA private key. Contains the modulus (n) and the private exponent (d).
A Probabilistic Signature Scheme object used for signature and verification.
An RSA public key. Contains the modulus (n) and the public exponent(e).

Enums

An RSA error object.

Traits

Functions

Generate a pair of RSA keys using the provided RNG and modulus length in bits. Acceptable modulus lengths are 2048, 3072 or 4096.