[][src]Struct tiny_keccak::CShake

pub struct CShake { /* fields omitted */ }

The cSHAKE extendable-output functions defined in SP800-185.

Usage

[dependencies]
tiny-keccak = { version = "2.0.0", features = ["cshake"] }

Methods

impl CShake[src]

pub fn v128(name: &[u8], custom_string: &[u8]) -> CShake[src]

Creates new CShake hasher with a security level of 128 bits.

pub fn v256(name: &[u8], custom_string: &[u8]) -> CShake[src]

Creates new CShake hasher with a security level of 256 bits.

Trait Implementations

impl Hasher for CShake[src]

impl Xof for CShake[src]

impl Clone for CShake[src]

Auto Trait Implementations

impl Unpin for CShake

impl Send for CShake

impl Sync for CShake

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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