pub struct AeadEncryptRequest<'a> {
pub key: &'a [u8],
pub nonce: &'a [u8],
pub aad: &'a [u8],
pub plaintext: &'a [u8],
}Expand description
Carries AES-GCM encrypt operation inputs.
Fields§
§key: &'a [u8]Symmetric encryption key bytes.
nonce: &'a [u8]Nonce bytes for AES-GCM operation.
aad: &'a [u8]Associated authenticated data bytes.
plaintext: &'a [u8]Plaintext bytes to encrypt.
Trait Implementations§
Source§impl<'a> Clone for AeadEncryptRequest<'a>
impl<'a> Clone for AeadEncryptRequest<'a>
Source§fn clone(&self) -> AeadEncryptRequest<'a>
fn clone(&self) -> AeadEncryptRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for AeadEncryptRequest<'a>
impl<'a> RefUnwindSafe for AeadEncryptRequest<'a>
impl<'a> Send for AeadEncryptRequest<'a>
impl<'a> Sync for AeadEncryptRequest<'a>
impl<'a> Unpin for AeadEncryptRequest<'a>
impl<'a> UnsafeUnpin for AeadEncryptRequest<'a>
impl<'a> UnwindSafe for AeadEncryptRequest<'a>
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