00001
00026 #ifndef __RIJNDAEL_ALG_FST_H
00027 #define __RIJNDAEL_ALG_FST_H
00028
00029 #define MAXKC (256/32)
00030 #define MAXKB (256/8)
00031 #define MAXNR 14
00032
00033 typedef unsigned char u8;
00034 typedef unsigned short u16;
00035 typedef unsigned int u32;
00036
00037 int rijndaelKeySetupEnc(u32 rk[], const u8 cipherKey[], int keyBits);
00038 int rijndaelKeySetupDec(u32 rk[], const u8 cipherKey[], int keyBits);
00039 void rijndaelEncrypt(const u32 rk[], int Nr, const u8 pt[16], u8 ct[16]);
00040 void rijndaelDecrypt(const u32 rk[], int Nr, const u8 ct[16], u8 pt[16]);
00041
00042 #ifdef INTERMEDIATE_VALUE_KAT
00043 void rijndaelEncryptRound(const u32 rk[], int Nr, u8 block[16], int rounds);
00044 void rijndaelDecryptRound(const u32 rk[], int Nr, u8 block[16], int rounds);
00045 #endif
00046
00047 #endif