[][src]Struct noise_sodiumoxide::Sha256

pub struct Sha256 { /* fields omitted */ }

Trait Implementations

impl Default for Sha256[src]

impl Hash for Sha256[src]

type Block = [u8; 64]

Type of a block.

type Output = Sensitive<[u8; 32]>

Type of output.

fn block_len() -> usize[src]

Length of block.

fn hash_len() -> usize[src]

Length of hash output, in number of bytes.

fn reset(&mut self)[src]

Reset state of hash context.

fn hash(data: &[u8]) -> Self::Output[src]

Calculate hash of some data.

fn hmac_many(key: &[u8], data: &[&[u8]]) -> Self::Output[src]

Calculate HMAC-THIS-HASH, with some key and several messages.

fn hmac(key: &[u8], data: &[u8]) -> Self::Output[src]

Calculate HMAC-THIS-HASH, with some key and a message.

fn hkdf(
    chaining_key: &[u8],
    input_key_material: &[u8]
) -> (Self::Output, Self::Output)
[src]

Calculate HKDF, as specified in the noise spec.

fn hkdf3(
    chaining_key: &[u8],
    input_key_material: &[u8]
) -> (Self::Output, Self::Output, Self::Output)
[src]

Triple output HKDF.

Auto Trait Implementations

impl Send for Sha256

impl Sync for Sha256

Blanket Implementations

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.

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

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

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