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

Last change on this file since 156 was 1, checked in by katerina, 19 years ago

Initial import

File size: 808 bytes
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/* SH_ENCRYPT */
37#endif
38
39/* __RIJNDAEL_ALG_FST_H */
40#endif
41
Note: See TracBrowser for help on using the repository browser.