[][src]Trait itsdangerous::algorithm::SigningAlgorithm

pub trait SigningAlgorithm {
    type OutputSize: ArrayLength<u8> + Unsigned;
    type Signer: Signer<OutputSize = Self::OutputSize>;
    fn get_signer(key: &[u8]) -> Self::Signer { ... }
fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize> { ... } }

A trait which implements signature generation functionality.

Associated Types

type OutputSize: ArrayLength<u8> + Unsigned

type Signer: Signer<OutputSize = Self::OutputSize>

Loading content...

Provided methods

fn get_signer(key: &[u8]) -> Self::Signer

Returns a signer that can be used to build a signature for a given key + values.

fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize>

Returns the signature for a given key + value.

Loading content...

Implementors

impl SigningAlgorithm for NoneAlgorithm[src]

type OutputSize = U0

type Signer = NoneSigner

fn get_signer(key: &[u8]) -> Self::Signer[src]

fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize>[src]

impl<Digest> SigningAlgorithm for HMACAlgorithm<Digest> where
    Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
    Digest::BlockSize: ArrayLength<u8> + Clone,
    Digest::OutputSize: ArrayLength<u8>, 
[src]

type OutputSize = Digest::OutputSize

type Signer = HMACSigner<Digest>

fn get_signer(key: &[u8]) -> Self::Signer[src]

fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize>[src]

Loading content...