[][src]Struct pgp::types::encrypted_secret::EncryptedSecretParams

pub struct EncryptedSecretParams { /* fields omitted */ }

Methods

impl EncryptedSecretParams[src]

pub fn new(
    data: Vec<u8>,
    iv: Vec<u8>,
    alg: SymmetricKeyAlgorithm,
    s2k: StringToKey,
    id: u8
) -> Self
[src]

pub fn data(&self) -> &[u8][src]

pub fn iv(&self) -> &[u8][src]

pub fn encryption_algorithm(&self) -> SymmetricKeyAlgorithm[src]

pub fn string_to_key(&self) -> &StringToKey[src]

pub fn string_to_key_id(&self) -> u8[src]

pub fn compare_checksum(&self, other: Option<&[u8]>) -> Result<()>[src]

pub fn checksum(&self) -> Option<Vec<u8>>[src]

pub fn unlock<F>(
    &self,
    pw: F,
    alg: PublicKeyAlgorithm
) -> Result<PlainSecretParams> where
    F: FnOnce() -> String
[src]

Trait Implementations

impl Serialize for EncryptedSecretParams[src]

impl Clone for EncryptedSecretParams[src]

impl Eq for EncryptedSecretParams[src]

impl PartialEq<EncryptedSecretParams> for EncryptedSecretParams[src]

impl Debug for EncryptedSecretParams[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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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