Skip to main content

RsaPrivateKeyOwned

Type Alias RsaPrivateKeyOwned 

Source
pub type RsaPrivateKeyOwned = RsaPrivateKey<Uint>;
Expand description

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

Aliased Type§

pub struct RsaPrivateKeyOwned {
    pub modulus: Uint,
    pub public_exponent: Uint,
    pub private_exponent: Uint,
    pub prime1: Uint,
    pub prime2: Uint,
    pub exponent1: Uint,
    pub exponent2: Uint,
    pub coefficient: Uint,
    pub other_prime_infos: Option<Vec<OtherPrimeInfo<Uint>>>,
}

Fields§

§modulus: Uint

n: RSA modulus.

§public_exponent: Uint

e: RSA public exponent.

§private_exponent: Uint

d: RSA private exponent.

§prime1: Uint

p: first prime factor of n.

§prime2: Uint

q: Second prime factor of n.

§exponent1: Uint

First exponent: d mod (p-1).

§exponent2: Uint

Second exponent: d mod (q-1).

§coefficient: Uint

CRT coefficient: (inverse of q) mod p.

§other_prime_infos: Option<Vec<OtherPrimeInfo<Uint>>>

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