pub enum PublicKeyEnum<'k> {
    Phantom(&'k PhantomData<()>),
}
Expand description

Variants of all know public keys

Variants

Phantom(&'k PhantomData<()>)

PhatomData for compiler when ring and or openssl not defined, do not use…

Implementations

Converts the bytes into a PulbicKey of the specified algorithm

Trait Implementations

Returns the public bytes of the public key, in DNS format
Verifies the hash matches the signature with the current key. 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

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.