4 /* 1. Standard types for AES cryptography source code */
6 typedef u_int8_t u1byte; /* an 8 bit unsigned character type */
7 typedef u_int16_t u2byte; /* a 16 bit unsigned integer type */
8 typedef u_int32_t u4byte; /* a 32 bit unsigned integer type */
10 typedef int8_t s1byte; /* an 8 bit signed character type */
11 typedef int16_t s2byte; /* a 16 bit signed integer type */
12 typedef int32_t s4byte; /* a 32 bit signed integer type */
14 typedef struct _rijndael_ctx {
22 /* 2. Standard interface for AES cryptographic routines */
24 /* These are all based on 32 bit unsigned values and will therefore */
25 /* require endian conversions for big-endian architectures */
27 rijndael_ctx *rijndael_set_key __P((rijndael_ctx *, const u4byte *, u4byte, int));
28 void rijndael_encrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
29 void rijndael_decrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
31 #endif /* _RIJNDAEL_H_ */