embassy-stm32

Crates

git

Versions

stm32f439ii

Flavors

Skip to main content

AlgorithmSpec

Trait AlgorithmSpec 

Source
pub trait AlgorithmSpec {
    type BlockingBuffer: BufferStorage;
    type AsyncBuffer: BufferStorage;
    type KeyBuffer: BufferStorage;
    type NonHmacCsr: CsrStorage;
    type HmacCsr: CsrStorage;

    const ALGORITHM: Algorithm;
    const BLOCK_SIZE: usize;
    const DIGEST_WORDS: usize;
}

Required Associated Constants§

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AlgorithmSpec for Md5

Source§

impl AlgorithmSpec for Sha1

Source§

impl AlgorithmSpec for Sha224

Source§

const ALGORITHM: Algorithm = Algorithm::SHA224

Source§

const BLOCK_SIZE: usize = 64

Source§

const DIGEST_WORDS: usize = 7

Source§

type BlockingBuffer = HashBuffer<{ $block + 4 }>

Source§

type AsyncBuffer = HashBuffer<{ 2 * $block }>

Source§

type KeyBuffer = HashBuffer<64>

Source§

type NonHmacCsr = [u32; 38]

Source§

type HmacCsr = [u32; 54]

Source§

impl AlgorithmSpec for Sha256

Source§

const ALGORITHM: Algorithm = Algorithm::SHA256

Source§

const BLOCK_SIZE: usize = 64

Source§

const DIGEST_WORDS: usize = 8

Source§

type BlockingBuffer = HashBuffer<{ $block + 4 }>

Source§

type AsyncBuffer = HashBuffer<{ 2 * $block }>

Source§

type KeyBuffer = HashBuffer<64>

Source§

type NonHmacCsr = [u32; 38]

Source§

type HmacCsr = [u32; 54]