Struct crypto::sha2::Sha256 [-] [+] [src]

pub struct Sha256 {
    // some fields omitted
}

The SHA-256 hash algorithm with the SHA-256 initial hash value.

Methods

impl Sha256

fn new() -> Sha256

Construct an new instance of a SHA-256 digest.

Trait Implementations

impl Digest for Sha256

fn input(&mut self, d: &[u8])

fn result(&mut self, out: &mut [u8])

fn reset(&mut self)

fn output_bits(&self) -> usize

fn block_size(&self) -> usize

fn output_bytes(&self) -> usize

fn input_str(&mut self, input: &str)

fn result_str(&mut self) -> String

Derived Implementations

impl Copy for Sha256