From: mamonet Date: Fri, 27 Nov 2020 08:55:34 +0000 (+0200) Subject: Suppress warnings in certain configuration and fix x86_64 build X-Git-Tag: nettle_3.7rc1~29^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53fc80a4b299eb244fffe08688b044ed4b80e3b8;p=thirdparty%2Fnettle.git Suppress warnings in certain configuration and fix x86_64 build --- 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);