diff options
author | Mouse <mouse07410@users.noreply.github.com> | 2019-07-02 11:02:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 11:02:07 -0400 |
commit | 97f5174226e3c309c87b9fdb11dd3c6299f00b4a (patch) | |
tree | a994a3db7e708d7a55de33617205fa6856d255ff /gfpcrypt.h | |
parent | 445ec61125d1aab1151ea248d2c22ac90f361094 (diff) | |
download | cryptopp-git-97f5174226e3c309c87b9fdb11dd3c6299f00b4a.tar.gz |
Complete change from DEFAULT_KEYLENGTH to DIGESTSIZE in DLAES
Change from `MAC::DEFAULT_KEYLENGTH` to `MAC::DIGESTSIZE` in `DL_EncryptionAlgorithm_Xor` was only partially done. This was discovered when null hash was used. This, along with the proposed fix, was discovered by Andrew Wason (thanks!).
Diffstat (limited to 'gfpcrypt.h')
-rw-r--r-- | gfpcrypt.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -716,7 +716,7 @@ public: if (DHAES_MODE)
{
macKey = key;
- cipherKey = key + MAC::DEFAULT_KEYLENGTH;
+ cipherKey = key + MAC::DIGESTSIZE;
}
else
{
@@ -748,7 +748,7 @@ public: if (DHAES_MODE)
{
macKey = key;
- cipherKey = key + MAC::DEFAULT_KEYLENGTH;
+ cipherKey = key + MAC::DIGESTSIZE;
}
else
{
|