Struct rustc_back::sha2::Sha256Unstable [-] [+] [src]

pub struct Sha256 {
    // some fields omitted
}

The SHA-256 hash algorithm

Methods

impl Sha256

fn new() -> Sha256

Construct a 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 input_str(&mut self, input: &str)

fn result_bytes(&mut self) -> Vec<u8>

fn result_str(&mut self) -> String