Skip to content

Commit

Permalink
aes_gcm: Fix typo in variable name (NFC).
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Jul 1, 2024
1 parent fd06b00 commit c6592d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aead/aes_gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ 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
// caused a buffer overflow.
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)
Expand Down

0 comments on commit c6592d0

Please sign in to comment.