diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/modes/gcm128.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c index 92b7f4f3c8..f3bcb7dd6e 100644 --- a/src/lib/libcrypto/modes/gcm128.c +++ b/src/lib/libcrypto/modes/gcm128.c | |||
| @@ -60,7 +60,7 @@ | |||
| 60 | #endif | 60 | #endif |
| 61 | #include <assert.h> | 61 | #include <assert.h> |
| 62 | 62 | ||
| 63 | #if defined(BSWAP4) && defined(STRICT_ALIGNMENT) | 63 | #if defined(BSWAP4) && defined(__STRICT_ALIGNMENT) |
| 64 | /* redefine, because alignment is ensured */ | 64 | /* redefine, because alignment is ensured */ |
| 65 | #undef GETU32 | 65 | #undef GETU32 |
| 66 | #define GETU32(p) BSWAP4(*(const u32 *)(p)) | 66 | #define GETU32(p) BSWAP4(*(const u32 *)(p)) |
| @@ -935,7 +935,7 @@ int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, | |||
| 935 | return 0; | 935 | return 0; |
| 936 | } | 936 | } |
| 937 | } | 937 | } |
| 938 | #if defined(STRICT_ALIGNMENT) | 938 | #ifdef __STRICT_ALIGNMENT |
| 939 | if (((size_t)in|(size_t)out)%sizeof(size_t) != 0) | 939 | if (((size_t)in|(size_t)out)%sizeof(size_t) != 0) |
| 940 | break; | 940 | break; |
| 941 | #endif | 941 | #endif |
| @@ -1113,7 +1113,7 @@ int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, | |||
| 1113 | return 0; | 1113 | return 0; |
| 1114 | } | 1114 | } |
| 1115 | } | 1115 | } |
| 1116 | #if defined(STRICT_ALIGNMENT) | 1116 | #ifdef __STRICT_ALIGNMENT |
| 1117 | if (((size_t)in|(size_t)out)%sizeof(size_t) != 0) | 1117 | if (((size_t)in|(size_t)out)%sizeof(size_t) != 0) |
| 1118 | break; | 1118 | break; |
| 1119 | #endif | 1119 | #endif |
