Skip to content

Commit

Permalink
removed redundant constants
Browse files Browse the repository at this point in the history
  • Loading branch information
AnarchistHoneybun committed Oct 11, 2024
1 parent 4ccdb85 commit 6db201f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions kupyna/src/sub_units/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ mod t_xor_plus;
use crate::KupynaH;
use t_xor_plus::{t_plus_l, t_xor_l};

const ROUNDS: usize = 14;

fn xor_bytes(a: &[u8], b: &[u8]) -> Vec<u8> {
a.iter().zip(b.iter()).map(|(x, y)| x ^ y).collect()
}
Expand Down
3 changes: 0 additions & 3 deletions kupyna/src/sub_units/t_xor_plus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ mod tests;

mod tables;

const ROWS: usize = 16;
const COLS: usize = 8; // For 512-bit state, adjust if needed

const BITS_IN_BYTE: u8 = 8;
const REDUCTION_POLYNOMIAL: u16 = 0x011d;

Expand Down

0 comments on commit 6db201f

Please sign in to comment.