From b895bda560d248ec1373c7ad6c27192090ff3311 Mon Sep 17 00:00:00 2001 From: Jonas Schneider-Bensch Date: Tue, 7 Jan 2025 16:13:56 +0100 Subject: [PATCH] Attempt to prevent buffer overflow in ML-KEM tests --- libcrux-sha3/src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libcrux-sha3/src/lib.rs b/libcrux-sha3/src/lib.rs index b3b3b0a5c..45033ab98 100644 --- a/libcrux-sha3/src/lib.rs +++ b/libcrux-sha3/src/lib.rs @@ -319,7 +319,6 @@ pub mod portable { /// Shake256 XOF in absorb state impl Xof<136> for Shake256Xof { /// Shake256 new state - #[inline(always)] fn new() -> Self { Self { state: KeccakXofState::<1, 136, u64>::new(), @@ -327,19 +326,16 @@ pub mod portable { } /// Shake256 absorb - #[inline(always)] fn absorb(&mut self, input: &[u8]) { self.state.absorb([input]); } /// Shake256 absorb final - #[inline(always)] fn absorb_final(&mut self, input: &[u8]) { self.state.absorb_final::<0x1fu8>([input]); } /// Shake256 squeeze - #[inline(always)] fn squeeze(&mut self, out: &mut [u8]) { self.state.squeeze([out]); }