summaryrefslogtreecommitdiff
path: root/gcm.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-08 21:11:35 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-08 21:11:35 +0100
commitfa5e487d30fe2750c9bb68e57a61191e5a6b7d78 (patch)
tree053fbd4f43b62237c40a9156433ab0d388d39267 /gcm.h
parent56691ae4805cc30f427ff38b1212e16901c565a4 (diff)
downloadnettle-fa5e487d30fe2750c9bb68e57a61191e5a6b7d78.tar.gz
* gcm.h (struct gcm_ctx): The hash key is now always an array,
named h, with array size depending on GCM_TABLE_BITS. Rev: nettle/gcm.h:1.6
Diffstat (limited to 'gcm.h')
-rw-r--r--gcm.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcm.h b/gcm.h
index aa17c34e..7f3c8ae1 100644
--- 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;