From 9b64be07a962e92e8ee971bcefbb0c22f6f41f94 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 4 Mar 2019 15:08:03 -0500 Subject: [PATCH] set chacha20 counter to 1 --- libi2pd/Crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Crypto.cpp b/libi2pd/Crypto.cpp index 68297ace..f713d1ce 100644 --- a/libi2pd/Crypto.cpp +++ b/libi2pd/Crypto.cpp @@ -1239,7 +1239,7 @@ namespace crypto EVP_CIPHER_CTX_free (ctx); #else chacha::Chacha20State state; - chacha::Chacha20Init (state, nonce, key, 0); + chacha::Chacha20Init (state, nonce, key, 1); if (out != msg) memcpy (out, msg, msgLen); chacha::Chacha20Encrypt (state, out, msgLen); #endif