diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ghash-set-key.c | 6 | ||||
-rw-r--r-- | ghash-update.c | 6 |
3 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2022-02-19 Niels Möller <nisse@lysator.liu.se> + + * ghash-set-key.c (_ghash_digest): Moved function from... + * ghash-update.c (_ghash_digest): ...old location. + 2022-02-18 Niels Möller <nisse@lysator.liu.se> * block-internal.h (block16_zero): New function. diff --git a/ghash-set-key.c b/ghash-set-key.c index e8813a5e..fa3c5588 100644 --- a/ghash-set-key.c +++ b/ghash-set-key.c @@ -66,3 +66,9 @@ _ghash_set_key (struct gcm_key *ctx, const union nettle_block16 *key) block16_xor3 (&ctx->h[i+j], &ctx->h[i], &ctx->h[j]); } } + +void +_ghash_digest (const union nettle_block16 *state, union nettle_block16 *digest) +{ + block16_xor (digest, state); +} diff --git a/ghash-update.c b/ghash-update.c index 00940ae5..b960bcda 100644 --- a/ghash-update.c +++ b/ghash-update.c @@ -136,9 +136,3 @@ _ghash_update (const struct gcm_key *ctx, union nettle_block16 *state, } return data; } - -void -_ghash_digest (const union nettle_block16 *state, union nettle_block16 *digest) -{ - block16_xor (digest, state); -} |