diff options
author | miod <> | 2014-04-22 22:21:32 +0000 |
---|---|---|
committer | miod <> | 2014-04-22 22:21:32 +0000 |
commit | 1395e02e13f730992f86d5d2d00e0bfda2303d03 (patch) | |
tree | b9676be891b591dc3ce93b487edb0a6b610520c6 | |
parent | 6e952462788feb4cbe1eb9130fc742e698bb76f0 (diff) | |
download | openbsd-1395e02e13f730992f86d5d2d00e0bfda2303d03.tar.gz openbsd-1395e02e13f730992f86d5d2d00e0bfda2303d03.tar.bz2 openbsd-1395e02e13f730992f86d5d2d00e0bfda2303d03.zip |
unifdef -UAES_LONG for we do not intend to run on platforms where int is smaller
than 32 bits.
-rw-r--r-- | src/lib/libcrypto/aes/aes.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/aes/aes_locl.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/aes/aes.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/aes/aes_locl.h | 4 |
4 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/libcrypto/aes/aes.h b/src/lib/libcrypto/aes/aes.h index 4d477bdf19..d05f803494 100644 --- a/src/lib/libcrypto/aes/aes.h +++ b/src/lib/libcrypto/aes/aes.h | |||
@@ -74,11 +74,7 @@ extern "C" { | |||
74 | 74 | ||
75 | /* This should be a hidden type, but EVP requires that the size be known */ | 75 | /* This should be a hidden type, but EVP requires that the size be known */ |
76 | struct aes_key_st { | 76 | struct aes_key_st { |
77 | #ifdef AES_LONG | ||
78 | unsigned long rd_key[4 *(AES_MAXNR + 1)]; | ||
79 | #else | ||
80 | unsigned int rd_key[4 *(AES_MAXNR + 1)]; | 77 | unsigned int rd_key[4 *(AES_MAXNR + 1)]; |
81 | #endif | ||
82 | int rounds; | 78 | int rounds; |
83 | }; | 79 | }; |
84 | typedef struct aes_key_st AES_KEY; | 80 | typedef struct aes_key_st AES_KEY; |
diff --git a/src/lib/libcrypto/aes/aes_locl.h b/src/lib/libcrypto/aes/aes_locl.h index 1d0e86331e..ac2fbff465 100644 --- a/src/lib/libcrypto/aes/aes_locl.h +++ b/src/lib/libcrypto/aes/aes_locl.h | |||
@@ -65,11 +65,7 @@ | |||
65 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) | 65 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) |
66 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } | 66 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } |
67 | 67 | ||
68 | #ifdef AES_LONG | ||
69 | typedef unsigned long u32; | ||
70 | #else | ||
71 | typedef unsigned int u32; | 68 | typedef unsigned int u32; |
72 | #endif | ||
73 | typedef unsigned short u16; | 69 | typedef unsigned short u16; |
74 | typedef unsigned char u8; | 70 | typedef unsigned char u8; |
75 | 71 | ||
diff --git a/src/lib/libssl/src/crypto/aes/aes.h b/src/lib/libssl/src/crypto/aes/aes.h index 4d477bdf19..d05f803494 100644 --- a/src/lib/libssl/src/crypto/aes/aes.h +++ b/src/lib/libssl/src/crypto/aes/aes.h | |||
@@ -74,11 +74,7 @@ extern "C" { | |||
74 | 74 | ||
75 | /* This should be a hidden type, but EVP requires that the size be known */ | 75 | /* This should be a hidden type, but EVP requires that the size be known */ |
76 | struct aes_key_st { | 76 | struct aes_key_st { |
77 | #ifdef AES_LONG | ||
78 | unsigned long rd_key[4 *(AES_MAXNR + 1)]; | ||
79 | #else | ||
80 | unsigned int rd_key[4 *(AES_MAXNR + 1)]; | 77 | unsigned int rd_key[4 *(AES_MAXNR + 1)]; |
81 | #endif | ||
82 | int rounds; | 78 | int rounds; |
83 | }; | 79 | }; |
84 | typedef struct aes_key_st AES_KEY; | 80 | typedef struct aes_key_st AES_KEY; |
diff --git a/src/lib/libssl/src/crypto/aes/aes_locl.h b/src/lib/libssl/src/crypto/aes/aes_locl.h index 1d0e86331e..ac2fbff465 100644 --- a/src/lib/libssl/src/crypto/aes/aes_locl.h +++ b/src/lib/libssl/src/crypto/aes/aes_locl.h | |||
@@ -65,11 +65,7 @@ | |||
65 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) | 65 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) |
66 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } | 66 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } |
67 | 67 | ||
68 | #ifdef AES_LONG | ||
69 | typedef unsigned long u32; | ||
70 | #else | ||
71 | typedef unsigned int u32; | 68 | typedef unsigned int u32; |
72 | #endif | ||
73 | typedef unsigned short u16; | 69 | typedef unsigned short u16; |
74 | typedef unsigned char u8; | 70 | typedef unsigned char u8; |
75 | 71 | ||