Type Alias Sha256

Source
pub type Sha256 = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>;
Available on crate feature sha2 only.
Expand description

SHA-256 hasher.

Aliased Type§

pub struct Sha256 { /* private fields */ }

Trait Implementations§

Source§

impl Digest for Sha256

Source§

const DIGEST_NAME: &'static str = "SHA256"

Source§

const OUTPUT_LEN: usize = 32usize

Source§

const BLOCK_LEN: usize = 64usize

Source§

type Output = [u8; 32]

Source§

fn new() -> Self

Source§

fn input(&mut self, data: impl AsRef<[u8]>)

Source§

fn finalize(self) -> Self::Output

Source§

fn with_output_slice(slice: &[u8]) -> Option<Self>

Source§

fn digest(data: impl AsRef<[u8]>) -> Self::Output

Source§

fn digest_concat( data: impl IntoIterator<Item = impl AsRef<[u8]>>, ) -> Self::Output