Trait Sha512Digest

Source
pub trait Sha512Digest {
    // Required methods
    fn update(&mut self, data: &[u8]) -> Result<(), InternalError>;
    fn finalize(&mut self) -> Result<Vec<u8>, InternalError>;
}
Expand description

Something which can generate a SHA-512 hash.

Required Methods§

Source

fn update(&mut self, data: &[u8]) -> Result<(), InternalError>

Update the digest context with the provided data.

Source

fn finalize(&mut self) -> Result<Vec<u8>, InternalError>

Return the digest result.

§Note

This method should prepare the context for reuse.

Implementations on Foreign Types§

Source§

impl Sha512Digest for Sha512

Source§

fn update(&mut self, data: &[u8]) -> Result<(), InternalError>

Source§

fn finalize(&mut self) -> Result<Vec<u8>, InternalError>

Implementors§