Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
Aes.c File Reference
#include "Precomp.h"
#include "CpuArch.h"
#include "Aes.h"

Macros

#define xtime(x)
 
#define Ui32(a0, a1, a2, a3)
 
#define gb0(x)
 
#define gb1(x)
 
#define gb2(x)
 
#define gb3(x)
 
#define gb(n, x)
 
#define TT(x)
 
#define DD(x)
 
#define HT(i, x, s)
 
#define HT4(m, i, s, p)
 
#define HT16(m, s, p)
 
#define FT(i, x)
 
#define FT4(i)
 
#define HD(i, x, s)
 
#define HD4(m, i, s, p)
 
#define HD16(m, s, p)
 
#define FD(i, x)
 
#define FD4(i)
 

Functions

void AesGenTables (void)
 
void Z7_FASTCALL Aes_SetKey_Enc (UInt32 *w, const Byte *key, unsigned keySize)
 
void Z7_FASTCALL Aes_SetKey_Dec (UInt32 *w, const Byte *key, unsigned keySize)
 
void AesCbc_Init (UInt32 *p, const Byte *iv)
 
void Z7_FASTCALL AesCbc_Encode (UInt32 *p, Byte *data, size_t numBlocks)
 
void Z7_FASTCALL AesCbc_Decode (UInt32 *p, Byte *data, size_t numBlocks)
 
void Z7_FASTCALL AesCtr_Code (UInt32 *p, Byte *data, size_t numBlocks)
 

Variables

AES_CODE_FUNC g_AesCbc_Decode
 
AES_CODE_FUNC g_AesCbc_Encode
 
AES_CODE_FUNC g_AesCtr_Code
 
UInt32 g_Aes_SupportedFunctions_Flags
 

Macro Definition Documentation

◆ DD

#define DD ( x)
Value:
(D + (x << 8))
#define D(x)
Definition crc_macros.h:26

◆ FD

#define FD ( i,
x )
Value:
InvS[gb(x, m[(i - x) & 3])]
#define gb(n, x)
Definition Aes.c:52
lzma_index ** i
Definition index.h:629

◆ FD4

#define FD4 ( i)
Value:
dest[i] = Ui32(FD(i, 0), FD(i, 1), FD(i, 2), FD(i, 3)) ^ w[i];
#define FD(i, x)
Definition Aes.c:230
#define Ui32(a0, a1, a2, a3)
Definition Aes.c:45
char * dest
Definition lz4.h:806
#define w(j, i)
Definition Sha256.c:154

◆ FT

#define FT ( i,
x )
Value:
Sbox[gb(x, m[(i + x) & 3])]

◆ FT4

#define FT4 ( i)
Value:
dest[i] = Ui32(FT(i, 0), FT(i, 1), FT(i, 2), FT(i, 3)) ^ w[i];
#define FT(i, x)
Definition Aes.c:212

◆ gb

#define gb ( n,
x )
Value:
gb ## n(x)

◆ gb0

#define gb0 ( x)
Value:
( (x) & 0xFF)

◆ gb1

#define gb1 ( x)
Value:
(((x) >> ( 8)) & 0xFF)

◆ gb2

#define gb2 ( x)
Value:
(((x) >> (16)) & 0xFF)

◆ gb3

#define gb3 ( x)
Value:
(((x) >> (24)))

◆ HD

#define HD ( i,
x,
s )
Value:
DD(x)[gb(x, s[(i - x) & 3])]
#define DD(x)
Definition Aes.c:55

◆ HD16

#define HD16 ( m,
s,
p )
Value:
HD4(m, 0, s, p); \
HD4(m, 1, s, p); \
HD4(m, 2, s, p); \
HD4(m, 3, s, p); \
#define HD4(m, i, s, p)
Definition Aes.c:218

◆ HD4

#define HD4 ( m,
i,
s,
p )
Value:
m[i] = \
HD(i, 0, s) ^ \
HD(i, 1, s) ^ \
HD(i, 2, s) ^ \
HD(i, 3, s) ^ w[p + i];

◆ HT

#define HT ( i,
x,
s )
Value:
TT(x)[gb(x, s[(i + x) & 3])]
#define TT(x)
Definition Aes.c:54

◆ HT16

#define HT16 ( m,
s,
p )
Value:
HT4(m, 0, s, p); \
HT4(m, 1, s, p); \
HT4(m, 2, s, p); \
HT4(m, 3, s, p); \
#define HT4(m, i, s, p)
Definition Aes.c:200

◆ HT4

#define HT4 ( m,
i,
s,
p )
Value:
m[i] = \
HT(i, 0, s) ^ \
HT(i, 1, s) ^ \
HT(i, 2, s) ^ \
HT(i, 3, s) ^ w[p + i]

◆ TT

#define TT ( x)
Value:
(T + (x << 8))

◆ Ui32

#define Ui32 ( a0,
a1,
a2,
a3 )
Value:
((UInt32)(a0) | ((UInt32)(a1) << 8) | ((UInt32)(a2) << 16) | ((UInt32)(a3) << 24))
unsigned int UInt32
Definition bzlib_private.h:45

◆ xtime

#define xtime ( x)
Value:
((((x) << 1) ^ (((x) & 0x80) != 0 ? 0x1B : 0)) & 0xFF)

Function Documentation

◆ Aes_SetKey_Dec()

void Z7_FASTCALL Aes_SetKey_Dec ( UInt32 * w,
const Byte * key,
unsigned keySize )

◆ Aes_SetKey_Enc()

void Z7_FASTCALL Aes_SetKey_Enc ( UInt32 * w,
const Byte * key,
unsigned keySize )

◆ AesCbc_Decode()

void MY_FAST_CALL AesCbc_Decode ( UInt32 * p,
Byte * data,
size_t numBlocks )

◆ AesCbc_Encode()

void MY_FAST_CALL AesCbc_Encode ( UInt32 * p,
Byte * data,
size_t numBlocks )

◆ AesCbc_Init()

void AesCbc_Init ( UInt32 * p,
const Byte * iv )

◆ AesCtr_Code()

void MY_FAST_CALL AesCtr_Code ( UInt32 * p,
Byte * data,
size_t numBlocks )

◆ AesGenTables()

void AesGenTables ( void )

Variable Documentation

◆ g_Aes_SupportedFunctions_Flags

UInt32 g_Aes_SupportedFunctions_Flags

◆ g_AesCbc_Decode

AES_CODE_FUNC g_AesCbc_Decode

◆ g_AesCbc_Encode

AES_CODE_FUNC g_AesCbc_Encode

◆ g_AesCtr_Code

AES_CODE_FUNC g_AesCtr_Code