pub struct EncryptRequest<'a> {
pub key: &'a Aes256GcmKey,
pub nonce: Aes256GcmNonce,
pub aad: &'a [u8],
pub plaintext: &'a [u8],
}Expand description
Inputs for a single AES-256-GCM encryption operation.
Fields§
§key: &'a Aes256GcmKeyEncryption key.
nonce: Aes256GcmNonceNonce; must be unique per key (see Aes256GcmNonce).
aad: &'a [u8]Additional authenticated data, authenticated but not encrypted.
plaintext: &'a [u8]Plaintext to encrypt.
Auto Trait Implementations§
impl<'a> Freeze for EncryptRequest<'a>
impl<'a> RefUnwindSafe for EncryptRequest<'a>
impl<'a> Send for EncryptRequest<'a>
impl<'a> Sync for EncryptRequest<'a>
impl<'a> Unpin for EncryptRequest<'a>
impl<'a> UnsafeUnpin for EncryptRequest<'a>
impl<'a> UnwindSafe for EncryptRequest<'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