summaryrefslogtreecommitdiff
path: root/pkcspad.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-12-26 00:46:50 -0500
committerJeffrey Walton <noloader@gmail.com>2017-12-26 00:46:50 -0500
commitb7133e7b3b25ad15810ec90911b0bd01a2ff5ad6 (patch)
tree00fcaa836260218bdf9c09d3da1614af5b5e203e /pkcspad.cpp
parentc0a8dab984d1214a76b6116a02baf1021bf7dc73 (diff)
downloadcryptopp-git-b7133e7b3b25ad15810ec90911b0bd01a2ff5ad6.tar.gz
Fix Clang specialization and definition warnings (GH #300, GH #533)
Clang 3.8 and above generates lots of "'PKCS_DigestDecoration<SHA1>::decoration' required here, but no definition is available" warnings
Diffstat (limited to 'pkcspad.cpp')
-rw-r--r--pkcspad.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkcspad.cpp b/pkcspad.cpp
index 6a792d2f..5192c109 100644
--- a/pkcspad.cpp
+++ b/pkcspad.cpp
@@ -53,12 +53,6 @@ template<> const unsigned int PKCS_DigestDecoration<SHA3_384>::length = (unsigne
template<> const byte PKCS_DigestDecoration<SHA3_512>::decoration[] = {0x30,0x51,0x30,0x0d, 0x06,0x09,0x60,0x86, 0x48,0x01,0x65,0x03, 0x04,0x02,0x0a,0x05, 0x00,0x04,0x40};
template<> const unsigned int PKCS_DigestDecoration<SHA3_512>::length = (unsigned int)sizeof(PKCS_DigestDecoration<SHA3_512>::decoration);
-
-template<> const byte EMSA2HashId< SHA1>::id = 0x33;
-template<> const byte EMSA2HashId<SHA224>::id = 0x38;
-template<> const byte EMSA2HashId<SHA256>::id = 0x34;
-template<> const byte EMSA2HashId<SHA384>::id = 0x36;
-template<> const byte EMSA2HashId<SHA512>::id = 0x35;
#endif
size_t PKCS_EncryptionPaddingScheme::MaxUnpaddedLength(size_t paddedLength) const