[][src]Struct rcrypto::KeccakSponge

pub struct KeccakSponge { /* fields omitted */ }

Implementations

impl KeccakSponge[src]

pub fn new(keccak: Keccak, rate: usize) -> Result<KeccakSponge, CryptoError>[src]

Sponge[Keccak-p[b,nr], pad10*1, rate]
rate must be a positive integer and strictly less than the width self.widths().

pub fn sponge(
    &mut self,
    byte_data: &[u8],
    bits_len: usize,
    want_bits_len: usize,
    results: &mut Vec<u8>
)
[src]

sponge the byte_data from the bits_len to the want_bits_len, and output the data to the results.
the bits processed from left to right in the writing order

Panics

This function panics if bits_len greater than the byte_data.len() * 8

Trait Implementations

impl Clone for KeccakSponge[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.