summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-27 16:10:32 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-27 16:10:32 +0100
commitca370920138bda6622dc62a2f007512e77088524 (patch)
tree341106b0d29ab85386c903a2581234bcacd46360
parent90c34ebe3ee812ecaee46980597e37b6136ba9e2 (diff)
parent53fc80a4b299eb244fffe08688b044ed4b80e3b8 (diff)
downloadnettle-ca370920138bda6622dc62a2f007512e77088524.tar.gz
Merge branch 'ppc-gcm' into 'ppc-gcm'
Suppress warnings in certain configuration and fix x86_64 build See merge request nettle/nettle!12
-rw-r--r--gcm-internal.h11
-rw-r--r--gcm.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/gcm-internal.h b/gcm-internal.h
index 6e858b20..36d5f6f3 100644
--- a/gcm-internal.h
+++ b/gcm-internal.h
@@ -33,6 +33,17 @@
#define NETTLE_GCM_INTERNAL_H_INCLUDED
/* Functions available only in some configurations */
+#if HAVE_NATIVE_gcm_init_key
+void
+_nettle_gcm_init_key (union nettle_block16 *table);
+#endif
+
+#if HAVE_NATIVE_gcm_hash
+void
+_nettle_gcm_hash(const struct gcm_key *key, union nettle_block16 *x,
+ size_t length, const uint8_t *data);
+#endif
+
#if HAVE_NATIVE_fat_gcm_init_key
void
_nettle_gcm_init_key (union nettle_block16 *table);
diff --git a/gcm.c b/gcm.c
index 4770e414..d6d68070 100644
--- a/gcm.c
+++ b/gcm.c
@@ -153,7 +153,7 @@ gcm_gf_mul (union nettle_block16 *x, const union nettle_block16 *table)
# elif GCM_TABLE_BITS == 8
# if HAVE_NATIVE_gcm_hash8
-#define gcm_hash _nettle_gcm_hash8
+#define _nettle_gcm_hash _nettle_gcm_hash8
void
_nettle_gcm_hash8 (const struct gcm_key *key, union nettle_block16 *x,
size_t length, const uint8_t *data);