From: Niels Möller Date: Thu, 10 Feb 2011 10:21:21 +0000 (+0100) Subject: (union gcm_block): Use correct length for w array. X-Git-Tag: nettle_2.2_release_20110711~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17f90be1034d1ebcf1f62744a1b5e35c475cee18;p=thirdparty%2Fnettle.git (union gcm_block): Use correct length for w array. Rev: nettle/ChangeLog:1.146 Rev: nettle/gcm.h:1.9 --- diff --git a/ChangeLog b/ChangeLog index 7e56534e..0aa7ec20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2011-02-10 Niels Möller + * gcm.h (union gcm_block): Use correct length for w array. + * testsuite/gcm-test.c (test_main): Added the rest of the testcases from the spec. 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 */