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
RsaRSA key
Fields of Rsa
n: Vec<u8> | |
e: Vec<u8> | |
d: Vec<u8> | |
iqmp: Vec<u8> | |
p: Vec<u8> | |
q: Vec<u8> |
Ed25519([u8; 64])Ed25519 (eliptic curves) key
Trait Implementations
impl Debug for PrivateKey[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for PrivateKey[src]
fn clone(&self) -> PrivateKey[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for PrivateKey[src]
fn eq(&self, other: &PrivateKey) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.