pub struct AeadWithDefaults<T>(/* private fields */);Available on crate feature
test_util only.Expand description
An Aead that that uses the default trait methods.
Trait Implementations§
Source§impl<T: Aead> Aead for AeadWithDefaults<T>
impl<T: Aead> Aead for AeadWithDefaults<T>
Source§const NONCE_SIZE: usize = T::NONCE_SIZE
const NONCE_SIZE: usize = T::NONCE_SIZE
Shorthand for
NonceSize.Source§const MAX_PLAINTEXT_SIZE: u64 = T::MAX_PLAINTEXT_SIZE
const MAX_PLAINTEXT_SIZE: u64 = T::MAX_PLAINTEXT_SIZE
Source§const MAX_ADDITIONAL_DATA_SIZE: u64 = T::MAX_ADDITIONAL_DATA_SIZE
const MAX_ADDITIONAL_DATA_SIZE: u64 = T::MAX_ADDITIONAL_DATA_SIZE
Source§const MAX_CIPHERTEXT_SIZE: u64 = T::MAX_CIPHERTEXT_SIZE
const MAX_CIPHERTEXT_SIZE: u64 = T::MAX_CIPHERTEXT_SIZE
Source§type Overhead = <T as Aead>::Overhead
type Overhead = <T as Aead>::Overhead
The size in octets of authentication overhead added to
encrypted plaintexts. Read more
Source§fn seal_in_place(
&self,
nonce: &[u8],
data: &mut [u8],
tag: &mut [u8],
additional_data: &[u8],
) -> Result<(), SealError>
fn seal_in_place( &self, nonce: &[u8], data: &mut [u8], tag: &mut [u8], additional_data: &[u8], ) -> Result<(), SealError>
Encrypts and authenticates
data in-place. Read moreSource§fn open_in_place(
&self,
nonce: &[u8],
data: &mut [u8],
tag: &[u8],
additional_data: &[u8],
) -> Result<(), OpenError>
fn open_in_place( &self, nonce: &[u8], data: &mut [u8], tag: &[u8], additional_data: &[u8], ) -> Result<(), OpenError>
Decrypts and authenticates
data in-place. Read moreSource§impl<T: Clone> Clone for AeadWithDefaults<T>
impl<T: Clone> Clone for AeadWithDefaults<T>
Source§fn clone(&self) -> AeadWithDefaults<T>
fn clone(&self) -> AeadWithDefaults<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for AeadWithDefaults<T>
impl<T: Debug> Debug for AeadWithDefaults<T>
Source§impl<T: Identified> Identified for AeadWithDefaults<T>
impl<T: Identified> Identified for AeadWithDefaults<T>
Auto Trait Implementations§
impl<T> Freeze for AeadWithDefaults<T>where
T: Freeze,
impl<T> RefUnwindSafe for AeadWithDefaults<T>where
T: RefUnwindSafe,
impl<T> Send for AeadWithDefaults<T>where
T: Send,
impl<T> Sync for AeadWithDefaults<T>where
T: Sync,
impl<T> Unpin for AeadWithDefaults<T>where
T: Unpin,
impl<T> UnwindSafe for AeadWithDefaults<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more