[][src]Struct vru_noise::Cipher

pub struct Cipher<C, R> where
    C: Config,
    R: Rotor<C>, 
{ /* fields omitted */ }

Implementations

impl<C, R> Cipher<C, R> where
    C: Config,
    R: Rotor<C>, 
[src]

pub fn swap(self) -> Self[src]

pub fn encrypt(&mut self, associated_data: &[u8], buffer: &mut [u8]) -> Tag<C>[src]

pub fn decrypt(
    &mut self,
    associated_data: &[u8],
    buffer: &mut [u8],
    tag: &Tag<C>
) -> Result<(), ()>
[src]

Trait Implementations

impl<C: Clone, R: Clone> Clone for Cipher<C, R> where
    C: Config,
    R: Rotor<C>, 
[src]

impl<C, R> Debug for Cipher<C, R> where
    C: Config,
    C::Aead: Debug,
    R: Rotor<C> + Debug
[src]

Auto Trait Implementations

impl<C, R> RefUnwindSafe for Cipher<C, R> where
    R: RefUnwindSafe,
    <C as Config>::Aead: RefUnwindSafe

impl<C, R> Send for Cipher<C, R> where
    R: Send,
    <C as Config>::Aead: Send

impl<C, R> Sync for Cipher<C, R> where
    R: Sync,
    <C as Config>::Aead: Sync

impl<C, R> Unpin for Cipher<C, R> where
    R: Unpin,
    <C as Config>::Aead: Unpin

impl<C, R> UnwindSafe for Cipher<C, R> where
    R: UnwindSafe,
    <C as Config>::Aead: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

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.