Browse Source

set chacha20 counter to 1

pull/1313/head
orignal 6 years ago
parent
commit
9b64be07a9
  1. 2
      libi2pd/Crypto.cpp

2
libi2pd/Crypto.cpp

@ -1239,7 +1239,7 @@ namespace crypto @@ -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

Loading…
Cancel
Save