Skip to content
Snippets Groups Projects
Commit fa5e487d authored by Niels Möller's avatar Niels Möller
Browse files

* 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
parent 56691ae4
No related branches found
No related tags found
No related merge requests found
...@@ -63,10 +63,7 @@ union gcm_block ...@@ -63,10 +63,7 @@ union gcm_block
struct gcm_ctx { struct gcm_ctx {
/* Key-dependent state. */ /* Key-dependent state. */
/* Hashing subkey */ /* Hashing subkey */
union gcm_block h; union gcm_block h[1 << GCM_TABLE_BITS];
#if GCM_TABLE_BITS
union gcm_block h_table[1 << GCM_TABLE_BITS];
#endif
/* Per-message state, depending on the iv */ /* Per-message state, depending on the iv */
/* Original counter block */ /* Original counter block */
union gcm_block iv; union gcm_block iv;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment