diff options
Diffstat (limited to 'sha.cpp')
-rw-r--r-- | sha.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,7 +100,11 @@ void SHA256::InitState(HashWordType *state) memcpy(state, s, sizeof(s)); } +#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE +CRYPTOPP_ALIGN_DATA(16) extern const word32 SHA256_K[64] CRYPTOPP_SECTION_ALIGN16 = { +#else extern const word32 SHA256_K[64] = { +#endif 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, @@ -426,7 +430,7 @@ void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 *data, } #endif -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) +#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_X64_MASM_AVAILABLE) size_t SHA256::HashMultipleBlocks(const word32 *input, size_t length) { |