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!).
pull/858/head
Mouse 2019-07-02 11:02:07 -04:00 committed by GitHub
parent 445ec61125
commit 97f5174226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
{