diff options
Diffstat (limited to 'src/lib/libcrypto/modes/modes_lcl.h')
| -rw-r--r-- | src/lib/libcrypto/modes/modes_lcl.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/modes/modes_lcl.h b/src/lib/libcrypto/modes/modes_lcl.h index b6dc3c336f..9d83e12844 100644 --- a/src/lib/libcrypto/modes/modes_lcl.h +++ b/src/lib/libcrypto/modes/modes_lcl.h | |||
| @@ -29,10 +29,7 @@ typedef unsigned char u8; | |||
| 29 | #if defined(__i386) || defined(__i386__) || \ | 29 | #if defined(__i386) || defined(__i386__) || \ |
| 30 | defined(__x86_64) || defined(__x86_64__) || \ | 30 | defined(__x86_64) || defined(__x86_64__) || \ |
| 31 | defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || \ | 31 | defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || \ |
| 32 | defined(__s390__) || defined(__s390x__) || \ | 32 | defined(__s390__) || defined(__s390x__) |
| 33 | ( (defined(__arm__) || defined(__arm)) && \ | ||
| 34 | (defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \ | ||
| 35 | defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__)) ) | ||
| 36 | # undef STRICT_ALIGNMENT | 33 | # undef STRICT_ALIGNMENT |
| 37 | #endif | 34 | #endif |
| 38 | 35 | ||
| @@ -101,8 +98,8 @@ typedef struct { u64 hi,lo; } u128; | |||
| 101 | 98 | ||
| 102 | struct gcm128_context { | 99 | struct gcm128_context { |
| 103 | /* Following 6 names follow names in GCM specification */ | 100 | /* Following 6 names follow names in GCM specification */ |
| 104 | union { u64 u[2]; u32 d[4]; u8 c[16]; } Yi,EKi,EK0,len, | 101 | union { u64 u[2]; u32 d[4]; u8 c[16]; size_t t[16/sizeof(size_t)]; } |
| 105 | Xi,H; | 102 | Yi,EKi,EK0,len,Xi,H; |
| 106 | /* Relative position of Xi, H and pre-computed Htable is used | 103 | /* Relative position of Xi, H and pre-computed Htable is used |
| 107 | * in some assembler modules, i.e. don't change the order! */ | 104 | * in some assembler modules, i.e. don't change the order! */ |
| 108 | #if TABLE_BITS==8 | 105 | #if TABLE_BITS==8 |
