From 53fc80a4b299eb244fffe08688b044ed4b80e3b8 Mon Sep 17 00:00:00 2001 From: mamonet Date: Fri, 27 Nov 2020 10:55:34 +0200 Subject: [PATCH] Suppress warnings in certain configuration and fix x86_64 build --- gcm-internal.h | 11 +++++++++++ gcm.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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); -- 2.47.2