]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Move _ghash_digest.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 19 Feb 2022 18:54:34 +0000 (19:54 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 19 Feb 2022 18:54:34 +0000 (19:54 +0100)
ChangeLog
ghash-set-key.c
ghash-update.c

index edfd411ae54f27002de0075b82c9d1a7d04871e7..dc288dd10262fb5e300e5429577e7044f53bd01e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index e8813a5ef98fbea59c9506b2d4d0f8a58afe83de..fa3c55887886c851b08c1c6240e5c0cc44345307 100644 (file)
@@ -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);
+}
index 00940ae50f5341d586aa4b59daae42b018dcb331..b960bcda06f88fec7418f11790e3ef1f21c5df60 100644 (file)
@@ -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);
-}