summaryrefslogtreecommitdiff
path: root/chachapoly.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-28 10:01:19 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-28 10:01:19 -0500
commit7c3414b0721dfafb7c71904dcbac2ee0fda359ef (patch)
tree64467f40e4878ca1975493a2900880d713363394 /chachapoly.cpp
parentfcf637082da86a1dd24c1b4ade9077e5bb8d598f (diff)
downloadcryptopp-git-7c3414b0721dfafb7c71904dcbac2ee0fda359ef.tar.gz
Fix ChaCha20Poly1305 IVSize() (GH #724)
Diffstat (limited to 'chachapoly.cpp')
-rw-r--r--chachapoly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chachapoly.cpp b/chachapoly.cpp
index 90b2864c..02a1f6b1 100644
--- a/chachapoly.cpp
+++ b/chachapoly.cpp
@@ -19,7 +19,7 @@ void ChaCha20Poly1305_Base::RekeyCipherAndMac(const byte *userKey, size_t keylen
AccessSymmetricCipher().ProcessString(derived, derived.size());
// Set the Poly1305 key
- AccessMAC().SetKey(derived, 32, params);
+ AccessMAC().SetKey(derived, derived.size(), params);
// Key Cipher for bulk encryption
AlgorithmParameters block1 = MakeParameters("InitialBlock", (word64)1, true);