summaryrefslogtreecommitdiff
path: root/gfpcrypt.h
diff options
context:
space:
mode:
authorMouse <mouse07410@users.noreply.github.com>2019-07-02 11:02:07 -0400
committerGitHub <noreply@github.com>2019-07-02 11:02:07 -0400
commit97f5174226e3c309c87b9fdb11dd3c6299f00b4a (patch)
treea994a3db7e708d7a55de33617205fa6856d255ff /gfpcrypt.h
parent445ec61125d1aab1151ea248d2c22ac90f361094 (diff)
downloadcryptopp-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfpcrypt.h b/gfpcrypt.h
index 1b26a56b..f15c397e 100644
--- a/gfpcrypt.h
+++ b/gfpcrypt.h
@@ -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
{