diff options
author | Sergiu Giurgiu <sgiurgiu11@gmail.com> | 2020-06-03 21:03:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 21:03:18 -0400 |
commit | 818f1ca944ad6c5d6d7aaebbaf83411991471891 (patch) | |
tree | 8ea50908b705dbf9c316577f34b91afb02da75f2 /sha.cpp | |
parent | b30600683178f613de9f72071d5d61bbb7ba0e0e (diff) | |
download | cryptopp-git-818f1ca944ad6c5d6d7aaebbaf83411991471891.tar.gz |
Fix conflicting Cryptogams API names on ARM with OpenSSL (GH #952)
Diffstat (limited to 'sha.cpp')
-rw-r--r-- | sha.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -67,7 +67,7 @@ extern void SHA256_HashMultipleBlocks_SHANI(word32 *state, const word32 *data, s #endif
#if CRYPTOGAMS_ARM_SHA1
-extern "C" void sha1_block_data_order(word32* state, const word32 *data, size_t blocks);
+extern "C" void sha1_block_data_order_ARM(word32* state, const word32 *data, size_t blocks);
extern "C" void sha1_block_data_order_neon(word32* state, const word32 *data, size_t blocks);
#endif
@@ -308,9 +308,9 @@ void SHA1::Transform(word32 *state, const word32 *data) # if defined(CRYPTOPP_LITTLE_ENDIAN)
word32 dataBuf[16];
ByteReverse(dataBuf, data, SHA1::BLOCKSIZE);
- sha1_block_data_order(state, data, 1);
+ sha1_block_data_order_ARM(state, data, 1);
# else
- sha1_block_data_order(state, data, 1);
+ sha1_block_data_order_ARM(state, data, 1);
# endif
return;
}
@@ -346,7 +346,7 @@ size_t SHA1::HashMultipleBlocks(const word32 *input, size_t length) }
if (HasARMv7())
{
- sha1_block_data_order(m_state, input, length / SHA1::BLOCKSIZE);
+ sha1_block_data_order_ARM(m_state, input, length / SHA1::BLOCKSIZE);
return length & (SHA1::BLOCKSIZE - 1);
}
#endif
|