Trait Sha256Context

Source
pub trait Sha256Context {
    // Required methods
    fn new() -> Self;
    fn update(&mut self, bytes: &[u8]);
    fn finalize(self) -> [u8; 32];
}
Expand description

Context trait for abstracting over implementation contexts.

Required Methods§

Source

fn new() -> Self

Source

fn update(&mut self, bytes: &[u8])

Source

fn finalize(self) -> [u8; 32]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sha256Context for Context

Source§

fn new() -> Self

Source§

fn update(&mut self, bytes: &[u8])

Source§

fn finalize(self) -> [u8; 32]

Source§

impl Sha256Context for Sha256

Source§

fn new() -> Self

Source§

fn update(&mut self, bytes: &[u8])

Source§

fn finalize(self) -> [u8; 32]

Implementors§