than 32 bits.
/* 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;
#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;
/* 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;
#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;