summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-02 00:25:58 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-02 00:25:58 -0500
commitb896c13bcb7aed61cec778b2cab952e1911c3dbe (patch)
treed337bab119cea2140cc04483362b74b190d940e1 /sha.cpp
parentc8b910aff5dbce3536a0535818bfa242432514e3 (diff)
downloadcryptopp-git-b896c13bcb7aed61cec778b2cab952e1911c3dbe.tar.gz
Fix missing __fastcall for *_HashBlocks functions under Win32
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sha.cpp b/sha.cpp
index c8a770ac..034f4fb7 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -31,8 +31,8 @@
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 (* pfnSHATransform)(word32 *state, const word32 *data);
+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);