Skip to main content

SigningKey

Trait SigningKey 

Source
pub trait SigningKey {
    type Hasher: HashImpl;

    // Required methods
    fn sign(&self, input: impl Writable) -> Result<Vec<u8>>;
    fn algorithm(&self) -> Algorithm;

    // Provided method
    fn hash(&self, data: impl Writable) -> HashOutput { ... }
}

Required Associated Types§

Required Methods§

Source

fn sign(&self, input: impl Writable) -> Result<Vec<u8>>

Source

fn algorithm(&self) -> Algorithm

Provided Methods§

Source

fn hash(&self, data: impl Writable) -> HashOutput

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SigningKey for DkimKey

Available on crate features aws-lc-rs or ring or rust-crypto only.
Source§

impl SigningKey for Ed25519Key

Source§

impl SigningKey for RsaKey<Sha256>