[][src]Enum pgp::types::PublicParams

pub enum PublicParams {
    RSA {
        n: Mpi,
        e: Mpi,
    },
    DSA {
        p: Mpi,
        q: Mpi,
        g: Mpi,
        y: Mpi,
    },
    ECDSA {
        curve: ECCCurve,
        p: Mpi,
    },
    ECDH {
        curve: ECCCurve,
        p: Mpi,
        hash: HashAlgorithm,
        alg_sym: SymmetricKeyAlgorithm,
    },
    Elgamal {
        p: Mpi,
        g: Mpi,
        y: Mpi,
    },
    EdDSA {
        curve: ECCCurve,
        q: Mpi,
    },
}

Represent the public paramaters for the different algorithms.

Variants

RSA

Fields of RSA

n: Mpie: Mpi
DSA

Fields of DSA

p: Mpiq: Mpig: Mpiy: Mpi
ECDSA

Fields of ECDSA

curve: ECCCurvep: Mpi
ECDH

Fields of ECDH

curve: ECCCurvep: Mpihash: HashAlgorithmalg_sym: SymmetricKeyAlgorithm
Elgamal

Fields of Elgamal

p: Mpig: Mpiy: Mpi
EdDSA

Fields of EdDSA

curve: ECCCurveq: Mpi

Trait Implementations

impl Serialize for PublicParams[src]

impl Clone for PublicParams[src]

impl Eq for PublicParams[src]

impl PartialEq<PublicParams> for PublicParams[src]

impl Debug for PublicParams[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