Skip to main content

RsaPrivateKeyRef

Type Alias RsaPrivateKeyRef 

Source
pub type RsaPrivateKeyRef<'a> = RsaPrivateKey<UintRef<'a>>;
Expand description

PKCS#1 RSA Private Keys as defined in [RFC 8017 Appendix 1.2].

Aliased Type§

pub struct RsaPrivateKeyRef<'a> {
    pub modulus: UintRef<'a>,
    pub public_exponent: UintRef<'a>,
    pub private_exponent: UintRef<'a>,
    pub prime1: UintRef<'a>,
    pub prime2: UintRef<'a>,
    pub exponent1: UintRef<'a>,
    pub exponent2: UintRef<'a>,
    pub coefficient: UintRef<'a>,
    pub other_prime_infos: Option<Vec<OtherPrimeInfo<UintRef<'a>>>>,
}

Fields§

§modulus: UintRef<'a>

n: RSA modulus.

§public_exponent: UintRef<'a>

e: RSA public exponent.

§private_exponent: UintRef<'a>

d: RSA private exponent.

§prime1: UintRef<'a>

p: first prime factor of n.

§prime2: UintRef<'a>

q: Second prime factor of n.

§exponent1: UintRef<'a>

First exponent: d mod (p-1).

§exponent2: UintRef<'a>

Second exponent: d mod (q-1).

§coefficient: UintRef<'a>

CRT coefficient: (inverse of q) mod p.

§other_prime_infos: Option<Vec<OtherPrimeInfo<UintRef<'a>>>>

Additional primes r_3, …, r_u, in order, if this is a multi-prime RSA key (i.e. version is multi).