summaryrefslogtreecommitdiff
path: root/gfpcrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfpcrypt.h')
-rw-r--r--gfpcrypt.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gfpcrypt.h b/gfpcrypt.h
index bcc064e6..e0102df0 100644
--- a/gfpcrypt.h
+++ b/gfpcrypt.h
@@ -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
{