diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-09-03 10:57:31 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-09-03 10:57:31 +0000 |
commit | 65ea2d1cb9f91b81127142551d0f4098583ede73 (patch) | |
tree | 19dad58c2b6f0728c0598cc5b120e9846d289b19 /pssr.h | |
parent | bf7ce9baa84e06a5bf001e55db1111c1050e2cfc (diff) | |
download | cryptopp-65ea2d1cb9f91b81127142551d0f4098583ede73.tar.gz |
changes related to the next FIPS validation
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@193 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'pssr.h')
-rw-r--r-- | pssr.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -4,9 +4,13 @@ #include "pubkey.h" #include <functional> +#ifdef CRYPTOPP_IS_DLL +#include "sha.h" +#endif + NAMESPACE_BEGIN(CryptoPP) -class PSSR_MEM_Base : public PK_RecoverableSignatureMessageEncodingMethod +class CRYPTOPP_DLL PSSR_MEM_Base : public PK_RecoverableSignatureMessageEncodingMethod { virtual bool AllowRecovery() const =0; virtual unsigned int SaltLen(unsigned int hashLen) const =0; @@ -28,8 +32,9 @@ public: byte *recoverableMessage) const; }; -template <class H> struct EMSA2HashId +template <class H> class EMSA2HashId { +public: static const byte id; }; @@ -43,6 +48,13 @@ class SHA512; class Whirlpool; // end of list +#ifdef CRYPTOPP_IS_DLL +CRYPTOPP_DLL_TEMPLATE_CLASS EMSA2HashId<SHA>; +CRYPTOPP_DLL_TEMPLATE_CLASS EMSA2HashId<SHA256>; +CRYPTOPP_DLL_TEMPLATE_CLASS EMSA2HashId<SHA384>; +CRYPTOPP_DLL_TEMPLATE_CLASS EMSA2HashId<SHA512>; +#endif + template <class BASE> class EMSA2HashIdLookup : public BASE { |