From ebb9593a4be3d920a79fc7bd318cec3170bcbed0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 30 Jan 2019 02:17:58 -0500 Subject: [PATCH] Update comments --- chachapoly.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chachapoly.cpp b/chachapoly.cpp index 8daff99d..bfa4bb89 100644 --- a/chachapoly.cpp +++ b/chachapoly.cpp @@ -9,11 +9,11 @@ NAMESPACE_BEGIN(CryptoPP) // RekeyCipherAndMac is heavier-weight than we like. The Authenc framework was -// predicated on BlcokCiphers, where the key and key schedule could be +// predicated on BlockCiphers, where the key and key schedule could be // calculated independent of the IV being used. However, the ChaCha and -// ChaCha20Poly1305 construction cannot disgorge key setup and IV. Even a -// simple Resync() forces us to regenerate the initial state for both -// ChaCha20 and Poly1305. +// ChaCha20Poly1305 construction conflates key setup and IV. That is, both are +// needed to key or rekey the cipher. Even a simple Resync() forces us to +// regenerate the initial state for both ChaCha20 and Poly1305. void ChaCha20Poly1305_Base::RekeyCipherAndMac(const byte *userKey, size_t keylength, const NameValuePairs ¶ms) { // Derive MAC key