embassy-crypto

Crates

git

Versions

default

Flavors

Skip to main content

Sha224

Trait Sha224 

Source
pub trait Sha224 {
    type Context: Send + Sync + Clone;

    // Required methods
    fn init() -> Self::Context;
    fn update(ctx: &mut Self::Context, data: &[u8]);
    fn finalize(ctx: Self::Context, out: &mut [u8; 28]);
}
Expand description

SHA-224 driver.

Required Associated Types§

Source

type Context: Send + Sync + Clone

Opaque storage for the implementation’s hash state.

Required Methods§

Source

fn init() -> Self::Context

Start a new hash computation.

Source

fn update(ctx: &mut Self::Context, data: &[u8])

Absorb data.

Source

fn finalize(ctx: Self::Context, out: &mut [u8; 28])

Finish the computation, writing the digest to out.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§