Struct sshcerts::ssh::RsaPrivateKey[][src]

pub struct RsaPrivateKey {
    pub n: Vec<u8>,
    pub e: Vec<u8>,
    pub d: Vec<u8>,
    pub coefficient: Vec<u8>,
    pub p: Vec<u8>,
    pub q: Vec<u8>,
    pub exp: Option<Vec<u8>>,
    pub exq: Option<Vec<u8>>,
}

RSA private key.

Fields

n: Vec<u8>

Modulus of key.

e: Vec<u8>

Public key exponent

d: Vec<u8>

Private key exponent.

coefficient: Vec<u8>

CRT coefficient q^(-1) mod p.

p: Vec<u8>

Prime factor p of n

q: Vec<u8>

Prime factor q of n

exp: Option<Vec<u8>>

Exponent using p

exq: Option<Vec<u8>>

Exponent using q

Trait Implementations

impl Clone for RsaPrivateKey[src]

impl Debug for RsaPrivateKey[src]

impl PartialEq<RsaPrivateKey> for RsaPrivateKey[src]

impl StructuralPartialEq for RsaPrivateKey[src]

impl ToASN1 for RsaPrivateKey[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.