Type Alias cypher::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§

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

§

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