[][src]Struct crypt4gh::Keys

pub struct Keys {
    pub method: u8,
    pub privkey: Vec<u8>,
    pub recipient_pubkey: Vec<u8>,
}

Key information.

Fields

method: u8

Method used for the key encryption.

Only method 0 is supported.

privkey: Vec<u8>

Secret key of the encryptor / decryptor (your key).

recipient_pubkey: Vec<u8>

Public key of the recipient (the key you want to encrypt for).

Trait Implementations

impl Clone for Keys[src]

impl Debug for Keys[src]

impl Eq for Keys[src]

impl Hash for Keys[src]

impl PartialEq<Keys> for Keys[src]

impl StructuralEq for Keys[src]

impl StructuralPartialEq for Keys[src]

Auto Trait Implementations

impl RefUnwindSafe for Keys

impl Send for Keys

impl Sync for Keys

impl Unpin for Keys

impl UnwindSafe for Keys

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.