Fix missing __fastcall for *_HashBlocks functions under Win32

pull/347/head
Jeffrey Walton 2016-12-02 00:25:58 -05:00
parent c8b910aff5
commit b896c13bcb
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ NAMESPACE_BEGIN(CryptoPP)
// Function pointer for specific SHA1 or SHA256 Transform function
typedef void (* pfnSHATransform)(word32 *state, const word32 *data);
typedef void (*pfnSHAHashBlocks)(word32 *state, const word32 *data, size_t length);
typedef void (* CRYPTOPP_FASTCALL pfnSHAHashBlocks)(word32 *state, const word32 *data, size_t length);
////////////////////////////////
// start of Steve Reid's code //
@ -696,7 +696,7 @@ void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 *data,
#endif
#if CRYPTOPP_BOOL_SSE_SHA_INTRINSICS_AVAILABLE
static void SHA256_SSE_SHA_HashBlocks(word32 *state, const word32 *data, size_t blocks);
static void CRYPTOPP_FASTCALL SHA256_SSE_SHA_HashBlocks(word32 *state, const word32 *data, size_t length);
#endif
#if (defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X32_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE)) && !defined(CRYPTOPP_DISABLE_SHA_ASM)
@ -878,7 +878,7 @@ static void SHA256_SSE_SHA_Transform(word32 *state, const word32 *data)
#if CRYPTOPP_BOOL_SSE_SHA_INTRINSICS_AVAILABLE
// Based on http://software.intel.com/en-us/articles/intel-sha-extensions and code by Sean Gulley.
static void SHA256_SSE_SHA_HashBlocks(word32 *state, const word32 *data, size_t length)
static void CRYPTOPP_FASTCALL SHA256_SSE_SHA_HashBlocks(word32 *state, const word32 *data, size_t length)
{
CRYPTOPP_ASSERT(state); CRYPTOPP_ASSERT(data);
CRYPTOPP_ASSERT(length % SHA256::BLOCKSIZE == 0);