From 6db201f42010e3fad65f1c3b2f46bd06524742ab Mon Sep 17 00:00:00 2001 From: AnarchistHoneybun Date: Fri, 11 Oct 2024 21:53:59 +0530 Subject: [PATCH] removed redundant constants --- kupyna/src/sub_units/mod.rs | 2 -- kupyna/src/sub_units/t_xor_plus/mod.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/kupyna/src/sub_units/mod.rs b/kupyna/src/sub_units/mod.rs index b8f23ea1..c559c251 100644 --- a/kupyna/src/sub_units/mod.rs +++ b/kupyna/src/sub_units/mod.rs @@ -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 { a.iter().zip(b.iter()).map(|(x, y)| x ^ y).collect() } diff --git a/kupyna/src/sub_units/t_xor_plus/mod.rs b/kupyna/src/sub_units/t_xor_plus/mod.rs index 825a484b..30fa2e2d 100644 --- a/kupyna/src/sub_units/t_xor_plus/mod.rs +++ b/kupyna/src/sub_units/t_xor_plus/mod.rs @@ -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;