From 37fc5916259565683f0f27d06384526d60aff44c Mon Sep 17 00:00:00 2001 From: Rupert <1982481+Eosis@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:01:58 +0100 Subject: [PATCH] Use full range of the stream counter for StreamLE31 (#641) --- aead-stream/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aead-stream/src/lib.rs b/aead-stream/src/lib.rs index 7b5d5215..67a8aa01 100644 --- a/aead-stream/src/lib.rs +++ b/aead-stream/src/lib.rs @@ -177,7 +177,7 @@ where type NonceOverhead = U4; type Counter = u32; const COUNTER_INCR: u32 = 1; - const COUNTER_MAX: u32 = 0xfff_ffff; + const COUNTER_MAX: u32 = 0x7fff_ffff; fn encrypt_in_place( &self,