[−][src]Struct pwbox::sodium::XSalsa20Poly1305
This is supported on crate feature
exonum_sodiumoxide
only.xsalsa20
symmetric cipher with poly1305
MAC.
Trait Implementations
impl Cipher for XSalsa20Poly1305
[src]
const KEY_LEN: usize
[src]
const NONCE_LEN: usize
[src]
const MAC_LEN: usize
[src]
fn seal(message: &[u8], nonce: &[u8], key: &[u8]) -> CipherOutput
[src]
fn open(
output: &mut [u8],
enc: &CipherOutput,
nonce: &[u8],
key: &[u8]
) -> Result<(), MacMismatch>
[src]
output: &mut [u8],
enc: &CipherOutput,
nonce: &[u8],
key: &[u8]
) -> Result<(), MacMismatch>
impl Clone for XSalsa20Poly1305
[src]
fn clone(&self) -> XSalsa20Poly1305
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XSalsa20Poly1305
[src]
impl Debug for XSalsa20Poly1305
[src]
impl Default for XSalsa20Poly1305
[src]
fn default() -> XSalsa20Poly1305
[src]
Auto Trait Implementations
impl RefUnwindSafe for XSalsa20Poly1305
impl Send for XSalsa20Poly1305
impl Sync for XSalsa20Poly1305
impl Unpin for XSalsa20Poly1305
impl UnwindSafe for XSalsa20Poly1305
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,