SigningKey

Trait SigningKey 

Source
pub trait SigningKey:
    Send
    + Sync
    + 'static {
    // Required methods
    fn sign(&self, tbs: &TBS) -> DnsSecResult<Vec<u8>>;
    fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>;
    fn algorithm(&self) -> Algorithm;
}
Expand description

A key that can be used to sign records.

Required Methods§

Source

fn sign(&self, tbs: &TBS) -> DnsSecResult<Vec<u8>>

Sign DNS records.

§Return value

The signature, ready to be stored in an RData::RRSIG.

Source

fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>

Returns a PublicKeyBuf for this SigningKey.

Source

fn algorithm(&self) -> Algorithm

Returns the algorithm of the key.

Implementors§