Skip to content

Commit

Permalink
Fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
myl7 committed Jul 15, 2023
1 parent 11bd0d2 commit d1d27e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl<const LAMBDA: usize, const N: usize> Aes256HirosePrg<LAMBDA, N> {
impl<const LAMBDA: usize, const N: usize> Prg<LAMBDA> for Aes256HirosePrg<LAMBDA, N> {
fn gen(&self, seed: &[u8; LAMBDA]) -> [([u8; LAMBDA], [u8; LAMBDA], bool); 2] {
// `$p(G_{i - 1})$`
let seed_p = xor(&[&seed, &Self::c()]);
let seed_p = xor(&[seed, &Self::c()]);
let mut result_buf0 = [[0; LAMBDA]; 2];
let mut result_buf1 = [[0; LAMBDA]; 2];
(0..2usize).zip(0..LAMBDA / 16).for_each(|(i, j)| {
Expand All @@ -57,7 +57,7 @@ impl<const LAMBDA: usize, const N: usize> Prg<LAMBDA> for Aes256HirosePrg<LAMBDA
});
result_buf0
.iter_mut()
.for_each(|buf| xor_inplace(buf, &[&seed]));
.for_each(|buf| xor_inplace(buf, &[seed]));
result_buf1
.iter_mut()
.for_each(|buf| xor_inplace(buf, &[&seed_p]));
Expand Down

0 comments on commit d1d27e8

Please sign in to comment.