source: trunk/include/rijndael-alg-fst.h@ 427

Last change on this file since 427 was 230, checked in by katerina, 16 years ago

Fix gcc 4.4 compiler warnings. Release 2.5.5.

File size: 1.0 KB
Line 
1/*
2 * rijndael-alg-fst.h v2.3 April '2000
3 *
4 * Optimised ANSI C code
5 *
6 */
7
8/*@-fixedformalarray@*/
9
10#ifndef __RIJNDAEL_ALG_FST_H
11#define __RIJNDAEL_ALG_FST_H
12
13#define MAXKC (256/32)
14#define MAXROUNDS 14
15
16/* USUAL_TYPES */
17#ifndef USUAL_TYPES
18#define USUAL_TYPES
19typedef unsigned char byte;
20typedef unsigned char word8;
21typedef unsigned short word16;
22typedef unsigned int word32;
23#endif
24
25#ifdef SH_ENCRYPT
26
27int rijndaelKeySched(word8 k[MAXKC][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
28
29int rijndaelKeyEncToDec(word8 W[MAXROUNDS+1][4][4], int ROUNDS);
30
31int rijndaelEncrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
32
33
34int rijndaelDecrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
35
36#ifdef INTERMEDIATE_VALUE_KAT
37int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
38int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
39#endif
40
41/* SH_ENCRYPT */
42#endif
43
44/* __RIJNDAEL_ALG_FST_H */
45#endif
46
Note: See TracBrowser for help on using the repository browser.