From f8e7e9e627aa5ddb16ad3eca1a883cf56a8fde9e Mon Sep 17 00:00:00 2001 From: elonfliter Date: Mon, 19 Oct 2026 08:56:05 +0800 Subject: [PATCH] streebog: fix stale doc comments in `consts` `C64` stopped being `[[u64; 8]; 12]` in #925, when the internal `U512` type was introduced, but its doc comment still claims the iteration constants are represented as `[u64; 8]`. The module docs also point at `table::SHUFFLED_LIN_TABLE`, although the crate has no `table` module: the table is generated in this very module. --- streebog/src/consts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streebog/src/consts.rs b/streebog/src/consts.rs index e6e626a9..58955047 100644 --- a/streebog/src/consts.rs +++ b/streebog/src/consts.rs @@ -1,6 +1,6 @@ //! Constants defined in the Streebog specification //! -//! In the code for optimization purposes `table::SHUFFLED_LIN_TABLE` is used +//! In the code for optimization purposes `SHUFFLED_LIN_TABLE` is used //! instead of `A` and `P` use crate::u512::U512; @@ -180,7 +180,7 @@ pub(crate) const C: [[u8; BLOCK_SIZE]; 12] = [ ], ]; -/// Iteration constants represented as `[u64; 8]` +/// Iteration constants represented as `[U512; 12]` pub(crate) const C64: [U512; 12] = { let mut res = [U512::ZERO; 12]; let mut i = 0;