[][src]Struct merlin::strobe::Strobe128

pub struct Strobe128 {
    state: AlignedKeccakState,
    pos: u8,
    pos_begin: u8,
    cur_flags: u8,
}

A Strobe context for the 128-bit security level.

Only meta-AD, AD, KEY, and PRF operations are supported.

Fields

state: AlignedKeccakStatepos: u8pos_begin: u8cur_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

impl Clone for Strobe128[src]

impl Debug for Strobe128[src]

impl Zeroize for Strobe128[src]

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]

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 = !

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<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]