[−][src]Struct merlin::strobe::Strobe128
A Strobe context for the 128-bit security level.
Only meta-AD
, AD
, KEY
, and PRF
operations are supported.
Fields
state: AlignedKeccakState
pos: u8
pos_begin: u8
cur_flags: u8
Methods
impl Strobe128
[src]
pub fn new(protocol_label: &[u8]) -> Strobe128
[src]
pub fn meta_ad(&mut self, data: &[u8], more: bool)
[src]
pub fn ad(&mut self, data: &[u8], more: bool)
[src]
pub fn prf(&mut self, data: &mut [u8], more: bool)
[src]
pub fn key(&mut self, data: &[u8], more: bool)
[src]
impl Strobe128
[src]
fn run_f(&mut self)
[src]
fn absorb(&mut self, data: &[u8])
[src]
fn overwrite(&mut self, data: &[u8])
[src]
fn squeeze(&mut self, data: &mut [u8])
[src]
fn begin_op(&mut self, flags: u8, more: bool)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Strobe128
impl Send for Strobe128
impl Sync for Strobe128
impl Unpin for Strobe128
impl UnwindSafe for Strobe128
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,
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.
fn to_owned(&self) -> T
[src]
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 = !
The type returned in the event of a conversion error.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,