pub trait PrivateKeyParts: PublicKeyParts {
    // Required methods
    fn d(&self) -> &BigUint;
    fn primes(&self) -> &[BigUint];
    fn dp(&self) -> Option<&BigUint>;
    fn dq(&self) -> Option<&BigUint>;
    fn qinv(&self) -> Option<&BigInt>;
    fn crt_values(&self) -> Option<&[CrtValue]>;
}
Expand description

Components of an RSA private key.

Required Methods§

source

fn d(&self) -> &BigUint

Returns the private exponent of the key.

source

fn primes(&self) -> &[BigUint]

Returns the prime factors.

source

fn dp(&self) -> Option<&BigUint>

Returns the precomputed dp value, D mod (P-1)

source

fn dq(&self) -> Option<&BigUint>

Returns the precomputed dq value, D mod (Q-1)

source

fn qinv(&self) -> Option<&BigInt>

Returns the precomputed qinv value, Q^-1 mod P

source

fn crt_values(&self) -> Option<&[CrtValue]>

Returns an iterator over the CRT Values

Implementors§