[PATCH 2/2] hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32
Jussi Kivilinna
jussi.kivilinna at iki.fi
Tue Dec 22 19:37:44 CET 2020
* src/hwf-arm.c (HWCAP2_SHA1, HWCAP2_SHA2): Change from bit indexes to
flags.
--
GnuPG-bug-id: 5195
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
src/hwf-arm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hwf-arm.c b/src/hwf-arm.c
index 1d19ea86..41188583 100644
--- a/src/hwf-arm.c
+++ b/src/hwf-arm.c
@@ -93,10 +93,10 @@ struct feature_map_s {
# define HWCAP2_PMULL 2
#endif
#ifndef HWCAP2_SHA1
-# define HWCAP2_SHA1 3
+# define HWCAP2_SHA1 4
#endif
#ifndef HWCAP2_SHA2
-# define HWCAP2_SHA2 4
+# define HWCAP2_SHA2 8
#endif
static const struct feature_map_s arm_features[] =
--
2.27.0
More information about the Gcrypt-devel
mailing list