embassy-stm32

Crates

git

Versions

stm32h533ve

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 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]

Source§

impl AlgorithmSpec for Sha384

Source§

const ALGORITHM: Algorithm = Algorithm::SHA384

Source§

const BLOCK_SIZE: usize = 128

Source§

const DIGEST_WORDS: usize = 12

Source§

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

Source§

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

Source§

type KeyBuffer = HashBuffer<128>

Source§

type NonHmacCsr = [u32; 91]

Source§

type HmacCsr = [u32; 103]

Source§

impl AlgorithmSpec for Sha512

Source§

const ALGORITHM: Algorithm = Algorithm::SHA512

Source§

const BLOCK_SIZE: usize = 128

Source§

const DIGEST_WORDS: usize = 16

Source§

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

Source§

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

Source§

type KeyBuffer = HashBuffer<128>

Source§

type NonHmacCsr = [u32; 91]

Source§

type HmacCsr = [u32; 103]

Source§

impl AlgorithmSpec for Sha512_224

Source§

const ALGORITHM: Algorithm = Algorithm::SHA512_224

Source§

const BLOCK_SIZE: usize = 128

Source§

const DIGEST_WORDS: usize = 7

Source§

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

Source§

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

Source§

type KeyBuffer = HashBuffer<128>

Source§

type NonHmacCsr = [u32; 91]

Source§

type HmacCsr = [u32; 103]

Source§

impl AlgorithmSpec for Sha512_256

Source§

const ALGORITHM: Algorithm = Algorithm::SHA512_256

Source§

const BLOCK_SIZE: usize = 128

Source§

const DIGEST_WORDS: usize = 8

Source§

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

Source§

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

Source§

type KeyBuffer = HashBuffer<128>

Source§

type NonHmacCsr = [u32; 91]

Source§

type HmacCsr = [u32; 103]