Skip to main content

PrivateKeyParts

Trait PrivateKeyParts 

Source
pub trait PrivateKeyParts: PublicKeyParts {
    // Required methods
    fn d(&self) -> &BoxedUint;
    fn primes(&self) -> &[BoxedUint];
    fn dp(&self) -> Option<&BoxedUint>;
    fn dq(&self) -> Option<&BoxedUint>;
    fn qinv(&self) -> Option<&BoxedMontyForm>;
    fn crt_values(&self) -> Option<&[CrtValue]>;
    fn p_params(&self) -> Option<&BoxedMontyParams>;
    fn q_params(&self) -> Option<&BoxedMontyParams>;
}
Expand description

Components of an RSA private key.

Required Methods§

Source

fn d(&self) -> &BoxedUint

Returns the private exponent of the key.

Source

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

Returns the prime factors.

Source

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

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

Source

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

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

Source

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

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

Source

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

Returns an iterator over the CRT Values

Source

fn p_params(&self) -> Option<&BoxedMontyParams>

Returns the params for p if precomputed.

Source

fn q_params(&self) -> Option<&BoxedMontyParams>

Returns the params for q if precomputed.

Implementors§