embassy-crypto

Crates

git

Versions

default

Flavors

Skip to main content

HmacSha512_224

Trait HmacSha512_224 

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

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

HMAC-SHA-512/224 driver.

Required Associated Types§

Source

type Context: Send + Sync + Clone

Opaque storage for the implementation’s MAC state.

Required Methods§

Source

fn init(key: &[u8]) -> Self::Context

Start a new MAC computation with key.

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 tag to out.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§