85#if defined(COMPILE_CRYPT_SUPPORT) || defined(Q_MOC_RUN)
87#define _MAX_KEY_COLUMNS (256 / 32)
94typedef unsigned char UINT8;
95typedef unsigned int UINT32;
96typedef 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 =
nullptr);
153 int blockEncrypt(
const UINT8 * input,
int inputLen, UINT8 * outBuffer, UINT8 * initVector =
nullptr);
157 int padEncrypt(
const UINT8 * input,
int inputOctets, UINT8 * outBuffer, UINT8 * initVector =
nullptr);
161 int blockDecrypt(
const UINT8 * input,
int inputLen, UINT8 * outBuffer, UINT8 * initVector =
nullptr);
165 int padDecrypt(
const UINT8 * input,
int inputOctets, UINT8 * outBuffer, UINT8 * initVector =
nullptr);
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 =
nullptr);
State
Definition NotifierSettings.h:62
#define a
Definition detector.cpp:92
This file contains compile time settings.
Mode
Definition KviOptions.h:606
int init()
Definition winamp.cpp:118