embassy-nrf

Crates

git

Versions

nrf9151-s

Flavors

Skip to main content

HashAlgorithm

Trait HashAlgorithm 

Source
pub trait HashAlgorithm:
    SealedAlgorithm
    + Copy
    + 'static {
    type Digest: Buffer;

    const BLOCK_LEN: usize;
    const DIGEST_LEN: usize;
}
Expand description

Hash algorithm. Implemented by Sha1, Sha224, Sha256 and, on CRACEN, the SHA-512 family.

This trait is sealed.

Required Associated Constants§

Source

const BLOCK_LEN: usize

Block length in bytes.

Source

const DIGEST_LEN: usize

Digest length in bytes.

Required Associated Types§

Source

type Digest: Buffer

Digest type: [u8; DIGEST_LEN].

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§