diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/modes/ctr128.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/modes/ctr128.c b/src/lib/libcrypto/modes/ctr128.c index ee642c5863..96af854f8a 100644 --- a/src/lib/libcrypto/modes/ctr128.c +++ b/src/lib/libcrypto/modes/ctr128.c | |||
| @@ -77,11 +77,12 @@ static void ctr128_inc(unsigned char *counter) { | |||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | #if !defined(OPENSSL_SMALL_FOOTPRINT) | 79 | #if !defined(OPENSSL_SMALL_FOOTPRINT) |
| 80 | static void ctr128_inc_aligned(unsigned char *counter) { | 80 | static void |
| 81 | ctr128_inc_aligned(unsigned char *counter) | ||
| 82 | { | ||
| 81 | size_t *data,c,n; | 83 | size_t *data,c,n; |
| 82 | const union { long one; char little; } is_endian = {1}; | ||
| 83 | 84 | ||
| 84 | if (is_endian.little) { | 85 | if (_BYTE_ORDER == _LITTLE_ENDIAN) { |
| 85 | ctr128_inc(counter); | 86 | ctr128_inc(counter); |
| 86 | return; | 87 | return; |
| 87 | } | 88 | } |
