From c6592d0023b868270b0aac389c9a4fe33870c39f Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 1 Jul 2024 13:37:38 -0700 Subject: [PATCH] aes_gcm: Fix typo in variable name (NFC). --- src/aead/aes_gcm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aead/aes_gcm.rs b/src/aead/aes_gcm.rs index feb4df1e28..511edd1553 100644 --- a/src/aead/aes_gcm.rs +++ b/src/aead/aes_gcm.rs @@ -151,7 +151,7 @@ pub(super) fn seal( ) }; - let ramaining = match in_out.get_mut(processed..) { + let remaining = match in_out.get_mut(processed..) { Some(remaining) => remaining, None => { // This can't happen. If it did, then the assembly already @@ -159,7 +159,7 @@ pub(super) fn seal( unreachable!() } }; - let (whole, remainder) = slice::as_chunks_mut(ramaining); + let (whole, remainder) = slice::as_chunks_mut(remaining); aes_key.ctr32_encrypt_within(slice::flatten_mut(whole), 0.., &mut ctr); auth.update_blocks(whole); seal_finish(aes_key, auth, remainder, ctr, tag_iv)