From 46cf46ccd88c046e0a284647de3cf5ac01ec90fc Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Sun, 4 Sep 2022 16:56:17 -0700 Subject: [PATCH] Minor --- evm/src/keccak_sponge/columns.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/evm/src/keccak_sponge/columns.rs b/evm/src/keccak_sponge/columns.rs index 3fb944fc..08194e87 100644 --- a/evm/src/keccak_sponge/columns.rs +++ b/evm/src/keccak_sponge/columns.rs @@ -5,8 +5,7 @@ use crate::util::{indices_arr, transmute_no_compile_time_size_checks}; pub(crate) const KECCAK_WIDTH_BYTES: usize = 200; pub(crate) const KECCAK_WIDTH_U32S: usize = KECCAK_WIDTH_BYTES / 4; -pub(crate) const KECCAK_RATE_BITS: usize = 1088; -pub(crate) const KECCAK_RATE_BYTES: usize = KECCAK_RATE_BITS / 8; +pub(crate) const KECCAK_RATE_BYTES: usize = 136; pub(crate) const KECCAK_RATE_U32S: usize = KECCAK_RATE_BYTES / 4; pub(crate) const KECCAK_CAPACITY_BYTES: usize = 64; pub(crate) const KECCAK_CAPACITY_U32S: usize = KECCAK_CAPACITY_BYTES / 4; @@ -51,8 +50,8 @@ pub(crate) struct KeccakSpongeColumnsView { /// The block being absorbed, which may contain input bytes and/or padding bytes. pub block_bytes: [T; KECCAK_RATE_BYTES], - /// The rate part of the sponge, after the current block is xor'd in, but before the permutation - /// is applied. + /// The rate part of the sponge, encoded as 32-bit chunks, after the current block is xor'd in, + /// but before the permutation is applied. pub xored_rate_u32s: [T; KECCAK_RATE_U32S], /// The entire state (rate + capacity) of the sponge, encoded as 32-bit chunks, after the