Last change
on this file since 448 was 230, checked in by katerina, 16 years ago |
Fix gcc 4.4 compiler warnings. Release 2.5.5.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1] | 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
|
---|
| 19 | typedef unsigned char byte;
|
---|
| 20 | typedef unsigned char word8;
|
---|
| 21 | typedef unsigned short word16;
|
---|
| 22 | typedef unsigned int word32;
|
---|
| 23 | #endif
|
---|
| 24 |
|
---|
| 25 | #ifdef SH_ENCRYPT
|
---|
| 26 |
|
---|
| 27 | int rijndaelKeySched(word8 k[MAXKC][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
|
---|
| 28 |
|
---|
| 29 | int rijndaelKeyEncToDec(word8 W[MAXROUNDS+1][4][4], int ROUNDS);
|
---|
| 30 |
|
---|
| 31 | int rijndaelEncrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | int rijndaelDecrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
|
---|
| 35 |
|
---|
[230] | 36 | #ifdef INTERMEDIATE_VALUE_KAT
|
---|
| 37 | int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
|
---|
| 38 | int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
|
---|
| 39 | #endif
|
---|
| 40 |
|
---|
[1] | 41 | /* SH_ENCRYPT */
|
---|
| 42 | #endif
|
---|
| 43 |
|
---|
| 44 | /* __RIJNDAEL_ALG_FST_H */
|
---|
| 45 | #endif
|
---|
| 46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.