From b4924f00b2f88654e27ce030d0a64e2fb254501d Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 15 Aug 2024 11:29:04 +0800 Subject: [PATCH] Fix incorrect comment in ssh_chapoly --- src/ssh_chapoly.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh_chapoly.rs b/src/ssh_chapoly.rs index 0c333fa..4cf7fef 100644 --- a/src/ssh_chapoly.rs +++ b/src/ssh_chapoly.rs @@ -126,7 +126,7 @@ impl SSHChaPoly { // compute tag let mut poly_key = [0u8; 32]; - // set block counter to 1 + // set block counter to 0 c.seek(0u32); c.apply_keystream(&mut poly_key); let poly = Poly1305::new((&poly_key).into());