From 242d67fb17619670d9b757c442dcf2e26d8478a1 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Jan 2005 04:19:35 +0000 Subject: changes done for FIPS-140 lab code drop git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@195 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- dll.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'dll.cpp') diff --git a/dll.cpp b/dll.cpp index dcebc70..22003c3 100644 --- a/dll.cpp +++ b/dll.cpp @@ -37,8 +37,11 @@ CRYPTOPP_DLL_TEMPLATE_CLASS AdditiveCipherTemplate; #endif -template<> const byte PKCS_DigestDecoration::decoration[] = {0x30,0x21,0x30,0x09,0x06,0x05,0x2B,0x0E,0x03,0x02,0x1A,0x05,0x00,0x04,0x14}; -template<> const unsigned int PKCS_DigestDecoration::length = sizeof(PKCS_DigestDecoration::decoration); +template<> const byte PKCS_DigestDecoration::decoration[] = {0x30,0x21,0x30,0x09,0x06,0x05,0x2B,0x0E,0x03,0x02,0x1A,0x05,0x00,0x04,0x14}; +template<> const unsigned int PKCS_DigestDecoration::length = sizeof(PKCS_DigestDecoration::decoration); + +template<> const byte PKCS_DigestDecoration::decoration[] = {0x30,0x2d,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x04,0x05,0x00,0x04,0x1c}; +template<> const unsigned int PKCS_DigestDecoration::length = sizeof(PKCS_DigestDecoration::decoration); template<> const byte PKCS_DigestDecoration::decoration[] = {0x30,0x31,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x01,0x05,0x00,0x04,0x20}; template<> const unsigned int PKCS_DigestDecoration::length = sizeof(PKCS_DigestDecoration::decoration); @@ -50,6 +53,7 @@ template<> const byte PKCS_DigestDecoration::decoration[] = {0x30,0x51,0 template<> const unsigned int PKCS_DigestDecoration::length = sizeof(PKCS_DigestDecoration::decoration); template<> const byte EMSA2HashId::id = 0x33; +template<> const byte EMSA2HashId::id = 0x38; template<> const byte EMSA2HashId::id = 0x34; template<> const byte EMSA2HashId::id = 0x36; template<> const byte EMSA2HashId::id = 0x35; @@ -69,7 +73,7 @@ using std::set_new_handler; static PNew s_pNew = NULL; static PDelete s_pDelete = NULL; -static void * CRYPTOPP_CDECL New (size_t size) +static void * New (size_t size) { void *p; while (!(p = malloc(size))) @@ -129,7 +133,7 @@ static void SetNewAndDeleteFunctionPointers() throw 0; } -void * CRYPTOPP_CDECL operator new (size_t size) +void * operator new (size_t size) { if (!s_pNew) SetNewAndDeleteFunctionPointers(); @@ -137,17 +141,17 @@ void * CRYPTOPP_CDECL operator new (size_t size) return s_pNew(size); } -void CRYPTOPP_CDECL operator delete (void * p) +void operator delete (void * p) { s_pDelete(p); } -void * CRYPTOPP_CDECL operator new [] (size_t size) +void * operator new [] (size_t size) { return operator new (size); } -void CRYPTOPP_CDECL operator delete [] (void * p) +void operator delete [] (void * p) { operator delete (p); } -- cgit v1.2.1