Skip to main content

SigningKey

Trait SigningKey 

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

A key that can be used to sign records.

Required Methods§

Source

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

Sign DNS records.

§Return value

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

Source

fn to_public_key(&self) -> Result<PublicKeyBuf, DnsSecError>

Returns a PublicKeyBuf for this SigningKey.

Source

fn algorithm(&self) -> Algorithm

Returns the algorithm of the key.

Implementors§