#define AES_BLOCK_SIZE 16 /* the AES block size in bytes */
#define N_COLS 4 /* the number of columns in the state */
-typedef unsigned long uint_32t;
+typedef unsigned int uint_32t;
typedef unsigned char uint_8t;
typedef unsigned short uint_16t;
typedef unsigned char aes_08t;
-typedef unsigned long aes_32t;
+typedef unsigned int aes_32t;
#define void_ret void
#define int_ret int
#endif
+#if 0 // defined (__i386__) || defined (__x86_64__)
+
+/*
+ looks like no other code for (i386/x86_64) is using the following definitions any more.
+ I comment this out, so the C code in the directory gen/ can be used to compile for test/development purpose.
+ Note : this is not going to change anything in the i386/x86_64 kernel.
+ (source code in i386/, mostly in assembly, does not reference to this header file.)
+
+ cclee 10-20-2010
+*/
/* the character array 'inf' in the following structures is used */
/* to hold AES context information. This AES code uses cx->inf.b[0] */
/* to hold the number of rounds multiplied by 16. The other three */
/* elements can be used by code that implements additional modes */
-#if defined (__i386__)
-
#if defined( AES_ERR_CHK )
#define aes_rval int_ret
#else
aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
#endif
-#if defined (__i386__)
+#if defined (__i386__) || defined (__x86_64__)
aes_rval aes_encrypt(const unsigned char *in, unsigned char *out, const aes_encrypt_ctx cx[1]);
#endif
aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
#endif
-#if defined (__i386__)
+#if defined (__i386__) || defined (__x86_64__)
aes_rval aes_decrypt(const unsigned char *in, unsigned char *out, const aes_decrypt_ctx cx[1]);
#endif