- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
rijndael-alg-fst.h
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- /*
- * rijndael-alg-fst.h v2.4 April '2000
- *
- * Optimised ANSI C code
- *
- * #define INTERMEDIATE_VALUE_KAT to generate the Intermediate Value Known Answer Test.
- */
- #ifndef __RIJNDAEL_ALG_FST_H
- #define __RIJNDAEL_ALG_FST_H
- #define BINARY_KEY_MATERIAL
- #define MAXKC (256/32)
- #define MAXROUNDS 14
- #ifndef USUAL_TYPES
- #define USUAL_TYPES
- typedef unsigned char byte;
- typedef unsigned char word8;
- typedef unsigned short word16;
- typedef unsigned int word32;
- #endif /* USUAL_TYPES */
- int rijndaelKeySched(word8 k[MAXKC][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
- int rijndaelKeyEncToDec(word8 W[MAXROUNDS+1][4][4], int ROUNDS);
- int rijndaelEncrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
- #ifdef INTERMEDIATE_VALUE_KAT
- int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
- #endif /* INTERMEDIATE_VALUE_KAT */
- int rijndaelDecrypt(word8 a[16], word8 b[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS);
- #ifdef INTERMEDIATE_VALUE_KAT
- int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds);
- #endif /* INTERMEDIATE_VALUE_KAT */
- #endif /* __RIJNDAEL_ALG_FST_H */