+2025-03-24 Niels Möller <nisse@lysator.liu.se>
+
+ * gcm.h (GCM_TABLE_BITS): Delete constant.
+ (struct gcm_key): Halve the allocation size for precomputed
+ values, to 2048 bytes, or 128 16-byte blocks.
+
2025-03-18 Niels Möller <nisse@lysator.liu.se>
Delete the output size argument from almost all digest functions.
#define GCM_BLOCK_SIZE 16
#define GCM_IV_SIZE (GCM_BLOCK_SIZE - 4)
#define GCM_DIGEST_SIZE 16
-#define GCM_TABLE_BITS 8
/* Hashing subkey */
struct gcm_key
{
- union nettle_block16 h[1 << GCM_TABLE_BITS];
+ union nettle_block16 h[0x80];
};
/* Per-message state, depending on the iv */
#define _nettle_ghash_set_key _nettle_ghash_set_key_c
#endif
-#if GCM_TABLE_BITS < 7
-# error Unsupported table size.
-#endif
-
/* Implements a lookup table for processors without carryless-mul
instruction. */
void
#include "ghash-internal.h"
#include "block-internal.h"
-#if GCM_TABLE_BITS < 7
-# error Unsupported table size.
-#endif
-
/* For fat builds */
#if HAVE_NATIVE_ghash_update
const uint8_t *