summaryrefslogtreecommitdiff
path: root/sha512_armv4.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-05-24 16:33:47 -0400
committerJeffrey Walton <noloader@gmail.com>2019-05-24 16:33:47 -0400
commitea96b9d37504d90ac17744e9c642235100a115ba (patch)
tree0a7d9b0af64725039c6b8a0cec16d8f5fc7b2ac7 /sha512_armv4.h
parent1650cac3f3223456538d8bf2fdd9e3d47f1d2d80 (diff)
downloadcryptopp-git-ea96b9d37504d90ac17744e9c642235100a115ba.tar.gz
Use CRYPTOGAMS_armcap_P for ARM (GH #846)
Andy advised against removing the global caps variable. This commit reintroduces CRYPTOGAMS_armcap_P. However, due to the shared object symbol loading problem, we needed to use CRYPTOGAMS_armcap_P as a global, and not CRYPTOGAMS_armcap as a local. Using CRYPTOGAMS_armcap_P directly caused the symbol to be marked as R_ARM_ABS32 which avoids the problem with R_ARM_REL32.
Diffstat (limited to 'sha512_armv4.h')
-rw-r--r--sha512_armv4.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha512_armv4.h b/sha512_armv4.h
index 52cb81f8..8e9f34cf 100644
--- a/sha512_armv4.h
+++ b/sha512_armv4.h
@@ -9,9 +9,9 @@
extern "C" {
#endif
-/* Crypto++ modifed sha256_block_data_order to pass caps as a parameter. */
+/* Crypto++ modifed sha512_block_data_order to pass caps as a parameter. */
/* Also see https://github.com/weidai11/cryptopp/issues/846. */
-void sha512_block_data_order(void *state, const void *data, size_t blocks, unsigned int caps);
+void sha512_block_data_order(void *state, const void *data, size_t blocks);
/* Cryptogams arm caps */
#define ARMV7_NEON (1<<0)