mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00

Add a library for common encryption/hashing algorithms. Currently implements MD4, MD5, SHA1, RC4 (all taken from advapi32 with minor modifications) and AES (taken from OpenWrt Linux). The library is currently used by advapi32 only, but ksecdd will make use of it later as well. svn path=/trunk/; revision=61805
19 lines
575 B
C
19 lines
575 B
C
/* rijndael-alg-ref.h v2.0 August '99
|
|
* Reference ANSI C code
|
|
* authors: Paulo Barreto
|
|
* Vincent Rijmen, K.U.Leuven
|
|
*/
|
|
#ifndef __RIJNDAEL_ALG_H
|
|
#define __RIJNDAEL_ALG_H
|
|
|
|
#define MAXBC (128/32)
|
|
#define MAXKC (256/32)
|
|
#define MAXROUNDS 14
|
|
|
|
|
|
int rijndaelKeySched (MV_U8 k[4][MAXKC], int keyBits, int blockBits, MV_U8 rk[MAXROUNDS+1][4][MAXBC]);
|
|
|
|
int rijndaelEncrypt128(MV_U8 a[4][MAXBC], MV_U8 rk[MAXROUNDS+1][4][MAXBC], int rounds);
|
|
int rijndaelDecrypt128(MV_U8 a[4][MAXBC], MV_U8 rk[MAXROUNDS+1][4][MAXBC], int rounds);
|
|
|
|
#endif /* __RIJNDAEL_ALG_H */
|