Enum openssh_keys::Data [−][src]
pub enum Data {
Rsa {
exponent: Vec<u8>,
modulus: Vec<u8>,
},
Dsa {
p: Vec<u8>,
q: Vec<u8>,
g: Vec<u8>,
pub_key: Vec<u8>,
},
Ed25519 {
key: Vec<u8>,
},
Ecdsa {
curve: Curve,
key: Vec<u8>,
},
}Data is the representation of the data section of an ssh public key. it is an enum with all the different supported key algorithms.
Variants
RsaFields of Rsa
exponent: Vec<u8> | |
modulus: Vec<u8> |
DsaFields of Dsa
p: Vec<u8> | |
q: Vec<u8> | |
g: Vec<u8> | |
pub_key: Vec<u8> |
Ed25519Fields of Ed25519
key: Vec<u8> |
EcdsaFields of Ecdsa
curve: Curve | |
key: Vec<u8> |
Trait Implementations
impl Clone for Data[src]
impl Clone for Datafn clone(&self) -> Data[src]
fn clone(&self) -> DataReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Data[src]
impl Debug for Datafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Data[src]
impl PartialEq for Datafn eq(&self, other: &Data) -> bool[src]
fn eq(&self, other: &Data) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Data) -> bool[src]
fn ne(&self, other: &Data) -> boolThis method tests for !=.
impl Eq for Data[src]
impl Eq for Data