Enum ssh_keys::PrivateKey [] [src]

pub enum PrivateKey {
    Rsa {
        n: Vec<u8>,
        e: Vec<u8>,
        d: Vec<u8>,
        iqmp: Vec<u8>,
        p: Vec<u8>,
        q: Vec<u8>,
    },
    Ed25519([u8; 64]),
}

Secret key enum

Variants

RSA key

Fields of Rsa

Ed25519 (eliptic curves) key

Trait Implementations

impl Debug for PrivateKey
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for PrivateKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PrivateKey
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for PrivateKey
[src]

Auto Trait Implementations

impl Send for PrivateKey

impl Sync for PrivateKey