diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-07-03 01:41:23 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-07-03 01:41:23 -0400 |
commit | ce6d3c1306cfa3f78c938a66cccc8acc5d0ec2af (patch) | |
tree | 042e28c2814a63755b44501c899380376c733ebb /gfpcrypt.h | |
parent | 5d0ceb3b04323a484059809d238d56e16ebcbe3e (diff) | |
download | cryptopp-git-ce6d3c1306cfa3f78c938a66cccc8acc5d0ec2af.tar.gz |
Add legacy ECIES ECP cryptosystem and kat (GH #856)
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
{
|