diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-04-22 22:21:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-04-22 22:21:33 +0000 |
commit | e52ccfc00afcdb121d3304d493a660d4e2c75ef4 (patch) | |
tree | 6ac2f2633ae594c855d57a302a462a93287ae214 /lib/libcrypto/aes | |
parent | ad63877b539cf31a63442eec6bac4f2732e403b8 (diff) |
unifdef -UAES_LONG for we do not intend to run on platforms where int is smaller
than 32 bits.
Diffstat (limited to 'lib/libcrypto/aes')
-rw-r--r-- | lib/libcrypto/aes/aes.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/aes/aes_locl.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/libcrypto/aes/aes.h b/lib/libcrypto/aes/aes.h index 4d477bdf193..d05f803494b 100644 --- a/lib/libcrypto/aes/aes.h +++ b/lib/libcrypto/aes/aes.h @@ -74,11 +74,7 @@ extern "C" { /* This should be a hidden type, but EVP requires that the size be known */ struct aes_key_st { -#ifdef AES_LONG - unsigned long rd_key[4 *(AES_MAXNR + 1)]; -#else unsigned int rd_key[4 *(AES_MAXNR + 1)]; -#endif int rounds; }; typedef struct aes_key_st AES_KEY; diff --git a/lib/libcrypto/aes/aes_locl.h b/lib/libcrypto/aes/aes_locl.h index 1d0e86331e4..ac2fbff465e 100644 --- a/lib/libcrypto/aes/aes_locl.h +++ b/lib/libcrypto/aes/aes_locl.h @@ -65,11 +65,7 @@ #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } -#ifdef AES_LONG -typedef unsigned long u32; -#else typedef unsigned int u32; -#endif typedef unsigned short u16; typedef unsigned char u8; |