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

pub struct Sha512Trunc256 {
    // some fields omitted
}

The SHA-512 hash algorithm with the SHA-512/256 initial hash value. The result is truncated to 256 bits.

Methods

impl Sha512Trunc256

fn new() -> Sha512Trunc256

Construct an new instance of a SHA-512/256 digest.

Trait Implementations

impl Digest for Sha512Trunc256

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