1 |
|
2 |
typedef struct rijndael_instance { |
3 |
int Nk,Nb,Nr; |
4 |
word8 fi[24],ri[24]; |
5 |
word32 fkey[120]; |
6 |
word32 rkey[120]; |
7 |
} RI; |
8 |
|
9 |
void _mcrypt_rijndael_set_key(RI* rinst, int nb,int nk,word8 *key); |
10 |
/* blocksize=32*nb bits. Key=32*nk bits */ |
11 |
/* currently nb,bk = 4, 6 or 8 */ |
12 |
/* key comes as 4*Nk bytes */ |
13 |
/* Key Scheduler. Create expanded encryption key */ |
14 |
|
15 |
void _mcrypt_rijndael_encrypt(RI* rinst, word8 *buff); |
16 |
void _mcrypt_rijndael_decrypt(RI* rinst, word8 *buff); |
17 |
void _mcrypt_rijndael_gentables(void); |