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
parent
445ec61125
commit
97f5174226
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue