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