pub trait Sha1 {
type Context;
// Required methods
fn sha1_init() -> Self::Context;
fn sha1_clone(ctx: &Self::Context) -> Self::Context;
fn sha1_update(ctx: &mut Self::Context, data: &[u8]);
fn sha1_finalize(ctx: Self::Context, data: &mut [u8]);
}Expand description
Sha1 trait
Required Associated Types§
Required Methods§
Sourcefn sha1_clone(ctx: &Self::Context) -> Self::Context
fn sha1_clone(ctx: &Self::Context) -> Self::Context
Hash init
Sourcefn sha1_update(ctx: &mut Self::Context, data: &[u8])
fn sha1_update(ctx: &mut Self::Context, data: &[u8])
Hash update
Sourcefn sha1_finalize(ctx: Self::Context, data: &mut [u8])
fn sha1_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".