pub trait Sha512_256 {
type Context;
// Required methods
fn sha512_256_init() -> Self::Context;
fn sha512_256_clone(ctx: &Self::Context) -> Self::Context;
fn sha512_256_update(ctx: &mut Self::Context, data: &[u8]);
fn sha512_256_finalize(ctx: Self::Context, data: &mut [u8]);
}Expand description
Sha512_256 trait
Required Associated Types§
Required Methods§
Sourcefn sha512_256_init() -> Self::Context
fn sha512_256_init() -> Self::Context
Hash init
Sourcefn sha512_256_clone(ctx: &Self::Context) -> Self::Context
fn sha512_256_clone(ctx: &Self::Context) -> Self::Context
Hash init
Sourcefn sha512_256_update(ctx: &mut Self::Context, data: &[u8])
fn sha512_256_update(ctx: &mut Self::Context, data: &[u8])
Hash update
Sourcefn sha512_256_finalize(ctx: Self::Context, data: &mut [u8])
fn sha512_256_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".