pub struct DecryptRequest<'a> {
pub key: &'a Aes256GcmKey,
pub nonce: Aes256GcmNonce,
pub aad: &'a [u8],
pub ciphertext: &'a CiphertextWithTag,
}Expand description
Inputs for a single AES-256-GCM decryption operation.
Fields§
§key: &'a Aes256GcmKeyDecryption key.
nonce: Aes256GcmNonceNonce that was used to produce the ciphertext.
aad: &'a [u8]Additional authenticated data that must match what was authenticated.
ciphertext: &'a CiphertextWithTagAuthenticated ciphertext || tag to decrypt and verify.
Auto Trait Implementations§
impl<'a> Freeze for DecryptRequest<'a>
impl<'a> RefUnwindSafe for DecryptRequest<'a>
impl<'a> Send for DecryptRequest<'a>
impl<'a> Sync for DecryptRequest<'a>
impl<'a> Unpin for DecryptRequest<'a>
impl<'a> UnsafeUnpin for DecryptRequest<'a>
impl<'a> UnwindSafe for DecryptRequest<'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