]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* gcm.h (struct gcm_ctx): The hash key is now always an array,
authorNiels Möller <nisse@lysator.liu.se>
Tue, 8 Feb 2011 20:11:35 +0000 (21:11 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 8 Feb 2011 20:11:35 +0000 (21:11 +0100)
named h, with array size depending on GCM_TABLE_BITS.

Rev: nettle/gcm.h:1.6

gcm.h

diff --git a/gcm.h b/gcm.h
index aa17c34eb168c077979a921638ba46b6a1394f8d..7f3c8ae164941c2209730fa8af6c7952174e4d90 100644 (file)
--- a/gcm.h
+++ b/gcm.h
@@ -63,10 +63,7 @@ union gcm_block
 struct gcm_ctx {
   /* Key-dependent state. */
   /* Hashing subkey */
-  union gcm_block h;
-#if GCM_TABLE_BITS
-  union gcm_block h_table[1 << GCM_TABLE_BITS];
-#endif
+  union gcm_block h[1 << GCM_TABLE_BITS];
   /* Per-message state, depending on the iv */
   /* Original counter block */
   union gcm_block iv;