[][src]Struct hmac_sha512::Hash

pub struct Hash { /* fields omitted */ }

Methods

impl Hash[src]

pub fn new() -> Hash[src]

pub fn update<T: AsRef<[u8]>>(&mut self, input: T)[src]

Absorb content

pub fn finalize(self) -> [u8; 64][src]

Compute SHA256(absorbed content)

pub fn hash<T: AsRef<[u8]>>(input: T) -> [u8; 64][src]

Compute SHA256(input)

Trait Implementations

impl Clone for Hash[src]

impl Copy for Hash[src]

impl Default for Hash[src]

Auto Trait Implementations

impl Send for Hash

impl Sync for Hash

impl Unpin for Hash

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.