(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)
#include "core/fdrm/fx_crypt.h"
#include <string.h>
#include "core/fxcrt/fx_system.h"
#include "third_party/base/check.h"
#include "third_party/base/check_op.h"
Go to the source code of this file.
◆ ADD_ROUND_KEY_4
#define ADD_ROUND_KEY_4 |
( |
| ) |
|
Value: (block[0] ^= *keysched++, block[1] ^= *keysched++, block[2] ^= *keysched++, \
block[3] ^= *keysched++)
Definition at line 432 of file fx_crypt_aes.cpp.
◆ FMAKEWORD [1/2]
Value: (newstate[
i] = (E0[(block[
i] >> 24) & 0xFF] ^ \
E1[(block[(
i + C1) % Nb] >> 16) & 0xFF] ^ \
E2[(block[(
i + C2) % Nb] >> 8) & 0xFF] ^ \
E3[block[(
i + C3) % Nb] & 0xFF]))
Definition at line 436 of file fx_crypt_aes.cpp.
◆ FMAKEWORD [2/2]
Value: (newstate[
i] = (D0[(block[
i] >> 24) & 0xFF] ^ \
D1[(block[(
i + C1) % Nb] >> 16) & 0xFF] ^ \
D2[(block[(
i + C2) % Nb] >> 8) & 0xFF] ^ \
D3[block[(
i + C3) % Nb] & 0xFF]))
Definition at line 436 of file fx_crypt_aes.cpp.
◆ LASTWORD [1/2]
Value: (newstate[
i] = (Sbox[(block[
i] >> 24) & 0xFF] << 24) | \
(Sbox[(block[(
i + C1) % Nb] >> 16) & 0xFF] << 16) | \
(Sbox[(block[(
i + C2) % Nb] >> 8) & 0xFF] << 8) | \
(Sbox[(block[(
i + C3) % Nb]) & 0xFF]))
Definition at line 441 of file fx_crypt_aes.cpp.
◆ LASTWORD [2/2]
Value: (newstate[
i] = (Sboxinv[(block[
i] >> 24) & 0xFF] << 24) | \
(Sboxinv[(block[(
i + C1) % Nb] >> 16) & 0xFF] << 16) | \
(Sboxinv[(block[(
i + C2) % Nb] >> 8) & 0xFF] << 8) | \
(Sboxinv[(block[(
i + C3) % Nb]) & 0xFF]))
Definition at line 441 of file fx_crypt_aes.cpp.
◆ MOVEWORD
◆ mulby2
Value:(((
x & 0x7F) << 1) ^ (
x & 0x80 ? 0x1B : 0))
GLint GLint GLint GLint GLint x
[0]
Definition at line 15 of file fx_crypt_aes.cpp.
◆ PUT_32BIT_MSB_FIRST
#define PUT_32BIT_MSB_FIRST |
( |
| cp, |
|
|
| value ) |
Value: do { \
(cp)[2] = (
value) >> 8; \
(cp)[1] = (
value) >> 16; \
(cp)[0] = (
value) >> 24; \
} while (0)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition at line 16 of file fx_crypt_aes.cpp.
◆ CRYPT_AESDecrypt()
void CRYPT_AESDecrypt |
( |
CRYPT_aes_context * | context, |
|
|
uint8_t * | dest, |
|
|
const uint8_t * | src, |
|
|
uint32_t | size ) |
◆ CRYPT_AESEncrypt()
void CRYPT_AESEncrypt |
( |
CRYPT_aes_context * | context, |
|
|
uint8_t * | dest, |
|
|
const uint8_t * | src, |
|
|
uint32_t | size ) |
◆ CRYPT_AESSetIV()
◆ CRYPT_AESSetKey()