iso9660fs: initialize buffer cache
[minix.git] / drivers / random / aes / rijndael-alg.h
blob9489e381ead4acaf73fff12307115a4d530288ea
1 /*
2 * rijndael-alg.h v2.4 April '2000
4 * Optimised ANSI C code
5 */
7 #ifndef __RIJNDAEL_ALG_H
8 #define __RIJNDAEL_ALG_H
10 #define MAXKC (256/32)
11 #define MAXROUNDS 14
13 /* Fix me: something generic based on inttypes.h */
14 #include "word_i386.h"
16 int rijndael_KeySched(word8 k[MAXKC][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
18 int rijndael_KeyEncToDec(word8 W[MAXROUNDS+1][4][4], int ROUNDS);
20 int rijndael_Encrypt(const void *a, void *b, word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
22 #ifdef INTERMEDIATE_VALUE_KAT
23 int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
24 #endif /* INTERMEDIATE_VALUE_KAT */
26 int rijndael_Decrypt(const void *a, void *b, word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
28 #ifdef INTERMEDIATE_VALUE_KAT
29 int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
30 #endif /* INTERMEDIATE_VALUE_KAT */
32 #endif /* __RIJNDAEL_ALG_H */
35 * $PchId: rijndael-alg.h,v 1.3 2003/09/29 09:19:17 philip Exp $