pub enum PublicKey<'a> {
    RSA(RSAPublicKey<'a>),
    EC(ECPoint<'a>),
    DSA(&'a [u8]),
    GostR3410(&'a [u8]),
    GostR3410_2012(&'a [u8]),
    Unknown(&'a [u8]),
}
Expand description

Public Key value

Variants

RSA(RSAPublicKey<'a>)

EC(ECPoint<'a>)

DSA(&'a [u8])

DSAPublicKey ::= INTEGER – public key, Y (RFC 3279)

GostR3410(&'a [u8])

GostR3410-94-PublicKey ::= OCTET STRING – public key, Y (RFC 4491)

GostR3410_2012(&'a [u8])

GostR3410-2012-256-PublicKey ::= OCTET STRING (64), GostR3410-2012-512-PublicKey ::= OCTET STRING (128). (RFC 4491-bis)

Unknown(&'a [u8])

Implementations

Return the key size (in bits) or 0

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.