85 #if defined(COMPILE_CRYPT_SUPPORT) || defined(Q_MOC_RUN)
87 #define _MAX_KEY_COLUMNS (256 / 32)
88 #define _MAX_ROUNDS 14
90 #define MAX_IV_SIZE 16
91 #define STRICT_ALIGN 0
94 typedef unsigned char UINT8;
95 typedef unsigned int UINT32;
96 typedef unsigned short UINT16;
98 #define RIJNDAEL_SUCCESS 0
99 #define RIJNDAEL_UNSUPPORTED_MODE -1
100 #define RIJNDAEL_UNSUPPORTED_DIRECTION -2
101 #define RIJNDAEL_UNSUPPORTED_KEY_LENGTH -3
102 #define RIJNDAEL_BAD_KEY -4
103 #define RIJNDAEL_NOT_INITIALIZED -5
104 #define RIJNDAEL_BAD_DIRECTION -6
105 #define RIJNDAEL_CORRUPTED_DATA -7
140 Direction m_direction;
141 UINT8 m_initVector[MAX_IV_SIZE];
143 UINT8 m_expandedKey[_MAX_ROUNDS + 1][4][4];
148 int init(
Mode mode, Direction dir,
const UINT8 * key, KeyLength keyLen, UINT8 * initVector = 0);
153 int blockEncrypt(
const UINT8 * input,
int inputLen, UINT8 * outBuffer, UINT8 * initVector = 0);
157 int padEncrypt(
const UINT8 * input,
int inputOctets, UINT8 * outBuffer, UINT8 * initVector = 0);
161 int blockDecrypt(
const UINT8 * input,
int inputLen, UINT8 * outBuffer, UINT8 * initVector = 0);
165 int padDecrypt(
const UINT8 * input,
int inputOctets, UINT8 * outBuffer, UINT8 * initVector = 0);
168 void keySched(UINT8 key[_MAX_KEY_COLUMNS][4]);
170 void encrypt(
const UINT8
a[16], UINT8 b[16]);
171 void decrypt(
const UINT8
a[16], UINT8 b[16]);
172 void updateInitVector(UINT8 * initVector = 0);
175 #endif // COMPILE_CRYPT_SUPPORT
177 #endif // _RIJNDAEL_H_
#define a
Definition: detector.cpp:91
State
Definition: NotifierSettings.h:61
Mode
Definition: KviOptions.h:599
int init()
Definition: winamp.cpp:118
This file contains compile time settings.