Enum trust_dns::rr::dnssec::public_key::PublicKeyEnum [] [src]

pub enum PublicKeyEnum<'k> {
    Rsa(Rsa<'k>),
    Ec(Ec<'k>),
}

Variants of all know public keys

Variants

RSA keypair, supported by OpenSSL

Ellyptic curve keypair, supported by OpenSSL

Methods

impl<'k> PublicKeyEnum<'k>
[src]

Converts the bytes into a PulbicKey of the specified algorithm

Trait Implementations

impl<'k> PublicKey for PublicKeyEnum<'k>
[src]

Returns the public bytes of the public key, in DNS format

Verifies the hash matches the signature with the current key. Read more

The key tag is calculated as a hash to more quickly lookup a DNSKEY. Read more