diff options
Diffstat (limited to 'gfpcrypt.h')
-rw-r--r-- | gfpcrypt.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -704,7 +704,7 @@ public: bool ParameterSupported(const char *name) const {return strcmp(name, Name::EncodingParameters()) == 0;}
size_t GetSymmetricKeyLength(size_t plaintextLength) const
- {return plaintextLength + static_cast<size_t>(MAC::DIGESTSIZE);}
+ {return plaintextLength + static_cast<size_t>(MAC::DEFAULT_KEYLENGTH);}
size_t GetSymmetricCiphertextLength(size_t plaintextLength) const
{return plaintextLength + static_cast<size_t>(MAC::DIGESTSIZE);}
size_t GetMaxSymmetricPlaintextLength(size_t ciphertextLength) const
@@ -716,8 +716,7 @@ public: if (DHAES_MODE)
{
macKey = key;
- //cipherKey = key + MAC::DIGESTSIZE;
- cipherKey = key + MAC::DEDAULT_KEYLENGTH;
+ cipherKey = key + MAC::DEFAULT_KEYLENGTH;
}
else
{
@@ -749,8 +748,7 @@ public: if (DHAES_MODE)
{
macKey = key;
- //cipherKey = key + MAC::DIGESTSIZE;
- cipherKey = key + MAC::DEDAULT_KEYLENGTH;
+ cipherKey = key + MAC::DEFAULT_KEYLENGTH;
}
else
{
|