mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
Update comments
This commit is contained in:
parent
013b5a30c7
commit
ebb9593a4b
@ -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 ¶ms)
|
void ChaCha20Poly1305_Base::RekeyCipherAndMac(const byte *userKey, size_t keylength, const NameValuePairs ¶ms)
|
||||||
{
|
{
|
||||||
// Derive MAC key
|
// Derive MAC key
|
||||||
|
Loading…
Reference in New Issue
Block a user