Skip to content

Commit

Permalink
Use full range of the stream counter for StreamLE31 (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eosis authored Oct 23, 2024
1 parent ab0b67b commit 37fc591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aead-stream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 37fc591

Please sign in to comment.