summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2014-04-22 22:21:32 +0000
committermiod <>2014-04-22 22:21:32 +0000
commit1395e02e13f730992f86d5d2d00e0bfda2303d03 (patch)
treeb9676be891b591dc3ce93b487edb0a6b610520c6
parent6e952462788feb4cbe1eb9130fc742e698bb76f0 (diff)
downloadopenbsd-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.h4
-rw-r--r--src/lib/libcrypto/aes/aes_locl.h4
-rw-r--r--src/lib/libssl/src/crypto/aes/aes.h4
-rw-r--r--src/lib/libssl/src/crypto/aes/aes_locl.h4
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 */
76struct aes_key_st { 76struct 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};
84typedef struct aes_key_st AES_KEY; 80typedef 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
69typedef unsigned long u32;
70#else
71typedef unsigned int u32; 68typedef unsigned int u32;
72#endif
73typedef unsigned short u16; 69typedef unsigned short u16;
74typedef unsigned char u8; 70typedef 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 */
76struct aes_key_st { 76struct 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};
84typedef struct aes_key_st AES_KEY; 80typedef 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
69typedef unsigned long u32;
70#else
71typedef unsigned int u32; 68typedef unsigned int u32;
72#endif
73typedef unsigned short u16; 69typedef unsigned short u16;
74typedef unsigned char u8; 70typedef unsigned char u8;
75 71