Enum trust_dns_client::rr::dnssec::PublicKeyEnum
source · [−]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
pub fn from_public_bytes(
public_key: &'k [u8],
algorithm: Algorithm
) -> Result<PublicKeyEnum<'k>, ProtoError>
pub fn from_public_bytes(
public_key: &'k [u8],
algorithm: Algorithm
) -> Result<PublicKeyEnum<'k>, ProtoError>
Converts the bytes into a PulbicKey of the specified algorithm
Trait Implementations
Returns the public bytes of the public key, in DNS format