From: Niels Möller Date: Sat, 19 Feb 2022 18:54:34 +0000 (+0100) Subject: Move _ghash_digest. X-Git-Tag: nettle_3.8_release_20220602~24 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bdc2fc317ba265f6eb584ad19e98a5bbaf1c39b9;p=thirdparty%2Fnettle.git Move _ghash_digest. --- diff --git a/ChangeLog b/ChangeLog index edfd411a..dc288dd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-02-19 Niels Möller + + * ghash-set-key.c (_ghash_digest): Moved function from... + * ghash-update.c (_ghash_digest): ...old location. + 2022-02-18 Niels Möller * 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); -}