Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
initsecret committed Sep 16, 2023
1 parent 7591f58 commit 0a4c0d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ocb3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<T: private::SealedTagSize> TagSize for T {}
pub trait NonceSize: private::SealedNonceSize {}
impl<T: private::SealedNonceSize> NonceSize for T {}

// Adapted from https://github.com/sgmenda/AEADs/blob/2209bcaa9edc65e9a60498e7ece5b50e66f32ebf/aes-gcm/src/lib.rs#L143-L157
// Adapted from https://github.com/rustcrypto/AEADs/blob/2209bcaa9edc65e9a60498e7ece5b50e66f32ebf/aes-gcm/src/lib.rs#L143-L157
mod private {
use aead::generic_array::ArrayLength;
use cipher::{consts, Unsigned};
Expand Down Expand Up @@ -318,7 +318,6 @@ where
/// Encrypts plaintext in groups of WIDTH.
///
/// Adapted from https://www.cs.ucdavis.edu/~rogaway/ocb/news/code/ocb.c
#[inline(never)]
fn wide_encrypt(&self, nonce: &Nonce<NonceSize>, buffer: &mut [u8]) -> (usize, Block, Block) {
#[cfg(not(target_feature = "avx512vaes"))]
const WIDTH: usize = 2;
Expand Down Expand Up @@ -372,7 +371,6 @@ where
/// Decrypts plaintext in groups of WIDTH.
///
/// Adapted from https://www.cs.ucdavis.edu/~rogaway/ocb/news/code/ocb.c
#[inline(never)]
fn wide_decrypt(&self, nonce: &Nonce<NonceSize>, buffer: &mut [u8]) -> (usize, Block, Block) {
#[cfg(not(target_feature = "avx512vaes"))]
const WIDTH: usize = 2;
Expand Down

0 comments on commit 0a4c0d3

Please sign in to comment.