embassy-crypto-driver

Crates

git

Versions

default

Flavors

Skip to main content

Md5

Trait Md5 

Source
pub trait Md5 {
    type Context;

    // Required methods
    fn md5_init() -> Self::Context;
    fn md5_clone(ctx: &Self::Context) -> Self::Context;
    fn md5_update(ctx: &mut Self::Context, data: &[u8]);
    fn md5_finalize(ctx: Self::Context, data: &mut [u8]);
}
Expand description

Md5 trait

Required Associated Types§

Source

type Context

Opaque storage for the implementation’s hash state.

Required Methods§

Source

fn md5_init() -> Self::Context

Hash init

Source

fn md5_clone(ctx: &Self::Context) -> Self::Context

Hash init

Source

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

Hash update

Source

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

Hash finalize

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§