[][src]Struct mem_aead_mrs::Mrs

pub struct Mrs<P: Permutation> { /* fields omitted */ }

Methods

impl<P: Permutation> Mrs<P>[src]

pub fn new() -> Mrs<P>[src]

pub fn encrypt(
    self,
    key: &[u8; 32],
    nonce: &[u8; 16],
    aad: &[u8],
    m: &mut [u8],
    tag: &mut [u8; 32]
)
[src]

pub fn decrypt(
    self,
    key: &[u8; 32],
    nonce: &[u8; 16],
    aad: &[u8],
    c: &mut [u8],
    tag: &[u8; 32]
) -> bool
[src]

Trait Implementations

impl<P: Permutation> Default for Mrs<P>[src]

Auto Trait Implementations

impl<P> Unpin for Mrs<P> where
    P: Unpin

impl<P> Send for Mrs<P> where
    P: Send

impl<P> Sync for Mrs<P> where
    P: Sync

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]