summaryrefslogtreecommitdiff
path: root/gcm.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-10 11:21:21 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-10 11:21:21 +0100
commit17f90be1034d1ebcf1f62744a1b5e35c475cee18 (patch)
tree6c84e3a1f2510b39c166597750eb01cffe06fc68 /gcm.h
parentbd0d97c5adb9f975e51cf15929967701eb1ac69b (diff)
downloadnettle-17f90be1034d1ebcf1f62744a1b5e35c475cee18.tar.gz
(union gcm_block): Use correct length for w array.
Rev: nettle/ChangeLog:1.146 Rev: nettle/gcm.h:1.9
Diffstat (limited to 'gcm.h')
-rw-r--r--gcm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcm.h b/gcm.h
index 4366bd86..2c1d7a60 100644
--- a/gcm.h
+++ b/gcm.h
@@ -64,7 +64,7 @@ extern "C" {
union gcm_block
{
uint8_t b[GCM_BLOCK_SIZE];
- unsigned long w[1];
+ unsigned long w[GCM_BLOCK_SIZE / sizeof(unsigned long)];
};
/* Hashing subkey */