[][src]Struct crypto::blake2s::Blake2s

pub struct Blake2s { /* fields omitted */ }

Methods

impl Blake2s[src]

pub fn new(outlen: usize) -> Blake2s[src]

pub fn new_keyed(outlen: usize, key: &[u8]) -> Blake2s[src]

pub fn reset(&mut self)[src]

pub fn blake2s(out: &mut [u8], input: &[u8], key: &[u8])[src]

Trait Implementations

impl Digest for Blake2s[src]

fn output_bytes(&self) -> usize[src]

Get the output size in bytes.

fn input_str(&mut self, input: &str)[src]

Convenience function that feeds a string into a digest. Read more

fn result_str(&mut self) -> String[src]

Convenience function that retrieves the result of a digest as a String in hexadecimal format. Read more

impl Mac for Blake2s[src]

fn input(&mut self, data: &[u8])[src]

Process input data.

Arguments

  • data - The input data to process.

fn reset(&mut self)[src]

Reset the Mac state to begin processing another input stream.

fn result(&mut self) -> MacResult[src]

Obtain the result of a Mac computation as a MacResult.

fn raw_result(&mut self, output: &mut [u8])[src]

Obtain the result of a Mac computation as [u8]. This method should be used very carefully since incorrect use of the Mac code could result in permitting a timing attack which defeats the security provided by a Mac function.

fn output_bytes(&self) -> usize[src]

Get the size of the Mac code, in bytes.

impl Clone for Blake2s[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Blake2s[src]

Auto Trait Implementations

impl Unpin for Blake2s

impl Sync for Blake2s

impl Send for Blake2s

impl UnwindSafe for Blake2s

impl RefUnwindSafe for Blake2s

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]