Crate rsa_oaep_pss

Source

Structs§

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

Enums§

RsaError
An RSA error object.

Traits§

FromDer
FromPem
ToDer
ToPem

Functions§

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