diff options
author | 2014-04-22 22:21:32 +0000 | |
---|---|---|
committer | 2014-04-22 22:21:32 +0000 | |
commit | 1571cfed7586976b53448a46f510adc1129af81a (patch) | |
tree | ce3b0873be0e39ee05da3e246b9bdd3bb79d62aa /lib | |
parent | Use calloc() instead of malloc(n * s) followed by memset(). Not (diff) | |
download | wireguard-openbsd-1571cfed7586976b53448a46f510adc1129af81a.tar.xz wireguard-openbsd-1571cfed7586976b53448a46f510adc1129af81a.zip |
unifdef -UAES_LONG for we do not intend to run on platforms where int is smaller
than 32 bits.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/aes/aes.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/aes/aes_locl.h | 4 | ||||
-rw-r--r-- | lib/libssl/src/crypto/aes/aes.h | 4 | ||||
-rw-r--r-- | lib/libssl/src/crypto/aes/aes_locl.h | 4 |
4 files changed, 0 insertions, 16 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; diff --git a/lib/libssl/src/crypto/aes/aes.h b/lib/libssl/src/crypto/aes/aes.h index 4d477bdf193..d05f803494b 100644 --- a/lib/libssl/src/crypto/aes/aes.h +++ b/lib/libssl/src/crypto/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/libssl/src/crypto/aes/aes_locl.h b/lib/libssl/src/crypto/aes/aes_locl.h index 1d0e86331e4..ac2fbff465e 100644 --- a/lib/libssl/src/crypto/aes/aes_locl.h +++ b/lib/libssl/src/crypto/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; |