[][src]Enum openssh_keys::Data

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

Rsa

Fields of Rsa

exponent: Vec<u8>modulus: Vec<u8>
Dsa

Fields of Dsa

p: Vec<u8>q: Vec<u8>g: Vec<u8>pub_key: Vec<u8>
Ed25519

Fields of Ed25519

key: Vec<u8>
Ecdsa

Fields of Ecdsa

curve: Curvekey: Vec<u8>

Trait Implementations

impl Clone for Data[src]

impl Debug for Data[src]

impl Eq for Data[src]

impl PartialEq<Data> for Data[src]

impl StructuralEq for Data[src]

impl StructuralPartialEq for Data[src]

Auto Trait Implementations

impl RefUnwindSafe for Data

impl Send for Data

impl Sync for Data

impl Unpin for Data

impl UnwindSafe for Data

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> Same<T> for T

type Output = T

Should always be Self

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.