[−][src]Struct vru_noise::Cipher
Implementations
impl<C, R> Cipher<C, R> where
C: Config,
R: Rotor<C>,
[src]
C: Config,
R: Rotor<C>,
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]
&mut self,
associated_data: &[u8],
buffer: &mut [u8],
tag: &Tag<C>
) -> Result<(), ()>
Trait Implementations
impl<C: Clone, R: Clone> Clone for Cipher<C, R> where
C: Config,
R: Rotor<C>,
[src]
C: Config,
R: Rotor<C>,
impl<C, R> Debug for Cipher<C, R> where
C: Config,
C::Aead: Debug,
R: Rotor<C> + Debug,
[src]
C: Config,
C::Aead: Debug,
R: Rotor<C> + Debug,
Auto Trait Implementations
impl<C, R> RefUnwindSafe for Cipher<C, R> where
R: RefUnwindSafe,
<C as Config>::Aead: RefUnwindSafe,
R: RefUnwindSafe,
<C as Config>::Aead: RefUnwindSafe,
impl<C, R> Send for Cipher<C, R> where
R: Send,
<C as Config>::Aead: Send,
R: Send,
<C as Config>::Aead: Send,
impl<C, R> Sync for Cipher<C, R> where
R: Sync,
<C as Config>::Aead: Sync,
R: Sync,
<C as Config>::Aead: Sync,
impl<C, R> Unpin for Cipher<C, R> where
R: Unpin,
<C as Config>::Aead: Unpin,
R: Unpin,
<C as Config>::Aead: Unpin,
impl<C, R> UnwindSafe for Cipher<C, R> where
R: UnwindSafe,
<C as Config>::Aead: UnwindSafe,
R: UnwindSafe,
<C as Config>::Aead: UnwindSafe,
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> Same<T> for T
type Output = T
Should always be Self
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 = Infallible
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>,