Enum pgp::types::SecretKeyRepr[][src]

pub enum SecretKeyRepr {
    RSA(RSAPrivateKey),
    DSA(DSASecretKey),
    ECDSA,
    ECDH(ECDHSecretKey),
    EdDSA(EdDSASecretKey),
}
Expand description

The version of the secret key that is actually exposed to users to do crypto operations.

Variants

RSA

Tuple Fields of RSA

0: RSAPrivateKey
DSA

Tuple Fields of DSA

0: DSASecretKey
ECDSA
ECDH

Tuple Fields of ECDH

0: ECDHSecretKey
EdDSA

Tuple Fields of EdDSA

0: EdDSASecretKey

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.