[PATCH 1/2] Add missing prototype for _gcry_mac_selftest

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/2] Add missing prototype for _gcry_mac_selftest

Jussi Kivilinna-2
* src/cipher-proto.h (_gcry_hmac_selftest): Rename to...
(_gcry_mac_selftest): ... this.
--

It appears that '_gcry_hmac_selftest' has been renamed to
'_gcry_mac_selftest' but renaming prototype was missed.

Signed-off-by: Jussi Kivilinna <[hidden email]>
---
 src/cipher-proto.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cipher-proto.h b/src/cipher-proto.h
index d87559ed..ece5322d 100644
--- a/src/cipher-proto.h
+++ b/src/cipher-proto.h
@@ -267,8 +267,8 @@ gcry_error_t _gcry_md_selftest (int algo, int extended,
                                 selftest_report_func_t report);
 gcry_error_t _gcry_pk_selftest (int algo, int extended,
                                 selftest_report_func_t report);
-gcry_error_t _gcry_hmac_selftest (int algo, int extended,
-                                  selftest_report_func_t report);
+gcry_error_t _gcry_mac_selftest (int algo, int extended,
+                                 selftest_report_func_t report);
 
 gcry_error_t _gcry_random_selftest (selftest_report_func_t report);
 
--
2.27.0


_______________________________________________
Gcrypt-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32

Jussi Kivilinna-2
* src/hwf-arm.c (HWCAP2_SHA1, HWCAP2_SHA2): Change from bit indexes to
flags.
--

GnuPG-bug-id: 5195
Signed-off-by: Jussi Kivilinna <[hidden email]>
---
 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


_______________________________________________
Gcrypt-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/2] Add missing prototype for _gcry_mac_selftest

NIIBE Yutaka
In reply to this post by Jussi Kivilinna-2
Jussi Kivilinna wrote:
> It appears that '_gcry_hmac_selftest' has been renamed to
> '_gcry_mac_selftest' but renaming prototype was missed.

Thank you.
--

_______________________________________________
Gcrypt-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel