[][src]Enum pgp::types::PlainSecretParams

pub enum PlainSecretParams {
    RSA {
        d: Mpi,
        p: Mpi,
        q: Mpi,
        u: Mpi,
    },
    DSA(Mpi),
    ECDSA(Mpi),
    ECDH(Mpi),
    Elgamal(Mpi),
    EdDSA(Mpi),
}

Variants

RSA

Fields of RSA

d: Mpip: Mpiq: Mpiu: Mpi
DSA(Mpi)
ECDSA(Mpi)
ECDH(Mpi)
Elgamal(Mpi)
EdDSA(Mpi)

Methods

impl PlainSecretParams[src]

pub fn from_slice(data: &[u8], alg: PublicKeyAlgorithm) -> Result<Self>[src]

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

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

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

pub fn as_ref(&self) -> PlainSecretParamsRef[src]

pub fn encrypt<R: CryptoRng + Rng>(
    self,
    rng: &mut R,
    passphrase: &str,
    alg: SymmetricKeyAlgorithm,
    s2k: StringToKey,
    version: KeyVersion,
    id: u8
) -> Result<EncryptedSecretParams>
[src]

Trait Implementations

impl Serialize for PlainSecretParams[src]

impl Clone for PlainSecretParams[src]

impl Eq for PlainSecretParams[src]

impl PartialEq<PlainSecretParams> for PlainSecretParams[src]

impl Debug for PlainSecretParams[src]

impl Zeroize for PlainSecretParams[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