Update comments

This commit is contained in:
Jeffrey Walton 2019-01-30 02:17:58 -05:00
parent 013b5a30c7
commit ebb9593a4b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -9,11 +9,11 @@
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
// RekeyCipherAndMac is heavier-weight than we like. The Authenc framework was // 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 // calculated independent of the IV being used. However, the ChaCha and
// ChaCha20Poly1305 construction cannot disgorge key setup and IV. Even a // ChaCha20Poly1305 construction conflates key setup and IV. That is, both are
// simple Resync() forces us to regenerate the initial state for both // needed to key or rekey the cipher. Even a simple Resync() forces us to
// ChaCha20 and Poly1305. // regenerate the initial state for both ChaCha20 and Poly1305.
void ChaCha20Poly1305_Base::RekeyCipherAndMac(const byte *userKey, size_t keylength, const NameValuePairs &params) void ChaCha20Poly1305_Base::RekeyCipherAndMac(const byte *userKey, size_t keylength, const NameValuePairs &params)
{ {
// Derive MAC key // Derive MAC key