diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2020-12-22 19:54:16 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2020-12-22 19:54:16 +0200 |
commit | 6b6bfd57d0a6b2b4577c084db35078cd9fadafa5 (patch) | |
tree | e56c1c61a377b263942132f9285df6e705f202ae | |
parent | e47f04b4a28947c90db70ccaf93e149cfd5213c9 (diff) | |
download | libgcrypt-6b6bfd57d0a6b2b4577c084db35078cd9fadafa5.tar.gz |
hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32
* 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@iki.fi>
-rw-r--r-- | src/hwf-arm.c | 4 |
1 files 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[] = |