[−][src]Struct rcrypto::KeccakSponge
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]
&mut self,
byte_data: &[u8],
bits_len: usize,
want_bits_len: usize,
results: &mut Vec<u8>
)
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]
fn clone(&self) -> KeccakSponge
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for KeccakSponge
impl Send for KeccakSponge
impl Sync for KeccakSponge
impl Unpin for KeccakSponge
impl UnwindSafe for KeccakSponge
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,