summaryrefslogtreecommitdiff
path: root/pkcspad.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-12-25 22:27:53 -0500
committerJeffrey Walton <noloader@gmail.com>2017-12-25 22:27:53 -0500
commit4232cfd40b692da38a3c3098af801d16ebb26852 (patch)
tree057ebacbf39dd09c62ada3ee4c8153161e31017b /pkcspad.cpp
parentb20a91f6b2f6a41cc10f9fe5da63fa91f7f081e4 (diff)
downloadcryptopp-git-4232cfd40b692da38a3c3098af801d16ebb26852.tar.gz
Fix failed self test under Clang (GH #533)
This may cause GH #300, "Clang 3.9 and missing member definitions for template classes" or GH #294, "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not...
Diffstat (limited to 'pkcspad.cpp')
-rw-r--r--pkcspad.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkcspad.cpp b/pkcspad.cpp
index d7204c54..6a792d2f 100644
--- a/pkcspad.cpp
+++ b/pkcspad.cpp
@@ -7,12 +7,13 @@
#include "pkcspad.h"
#include "emsa2.h"
+#include "hashfwd.h"
#include "misc.h"
#include "trap.h"
NAMESPACE_BEGIN(CryptoPP)
-// More in dll.cpp. Typedef/cast change due to Clang, http://github.com/weidai11/cryptopp/issues/300
+// Typedef/cast change due to Clang, http://github.com/weidai11/cryptopp/issues/300
template<> const byte PKCS_DigestDecoration<Weak1::MD2>::decoration[] = {0x30,0x20,0x30,0x0c,0x06,0x08,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x02,0x02,0x05,0x00,0x04,0x10};
template<> const unsigned int PKCS_DigestDecoration<Weak1::MD2>::length = (unsigned int)sizeof(PKCS_DigestDecoration<Weak1::MD2>::decoration);