On Fri, Nov 27, 2020 at 8:13 PM Niels Möller nisse@lysator.liu.se wrote:
I wonder if gcm-internal.h can be cut down a bit, to
/* Functions available only in some configurations */ void _nettle_gcm_init_key (union nettle_block16 *table);
void _nettle_gcm_hash(const struct gcm_key *key, union nettle_block16 *x, size_t length, const uint8_t *data);
But if HAVE_NATIVE_gcm_init_key and HAVE_NATIVE_gcm_hash are not defined, there are no definitions for _nettle_gcm_init_key() and _nettle_gcm_hash() respectively. Maybe it doesn't yield a warning or error because it's ok for the compiler to have a prototype declaration without function definition.