[][src]Struct pgp::types::ECDHSecretKey

pub struct ECDHSecretKey {
    pub secret: [u8; 32],
    pub hash: HashAlgorithm,
    pub oid: Vec<u8>,
    pub alg_sym: SymmetricKeyAlgorithm,
}

Secret key for ECDH with Curve25519, the only combination we currently support.

Fields

secret: [u8; 32]

The secret point.

hash: HashAlgorithmoid: Vec<u8>alg_sym: SymmetricKeyAlgorithm

Trait Implementations

impl Drop for ECDHSecretKey[src]

impl Clone for ECDHSecretKey[src]

impl Eq for ECDHSecretKey[src]

impl PartialEq<ECDHSecretKey> for ECDHSecretKey[src]

impl Debug for ECDHSecretKey[src]

impl Zeroize for ECDHSecretKey[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]

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

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