Mobile API Reference
MicroStrategy 2019
|
Go to the source code of this file.
Macros | |
#define | AES_LITTLE_ENDIAN 1234 /* byte 0 is least significant (i386) */ |
#define | AES_BIG_ENDIAN 4321 /* byte 0 is most significant (mc68k) */ |
#define | ENCRYPTION_KEY_SCHEDULE |
#define | DECRYPTION_KEY_SCHEDULE |
#define | ENCRYPTION |
#define | DECRYPTION |
#define | INTERNAL_BYTE_ORDER PLATFORM_BYTE_ORDER |
#define | SAFE_IO |
#define | ENC_UNROLL FULL |
#define | DEC_UNROLL FULL |
#define | FIXED_TABLES |
#define | FF_TABLES |
#define | ARRAYS |
#define | s(x, c) x[c] |
#define | FAST_VARIABLE |
#define | ENC_ROUND FOUR_TABLES |
#define | LAST_ENC_ROUND FOUR_TABLES |
#define | DEC_ROUND FOUR_TABLES |
#define | LAST_DEC_ROUND FOUR_TABLES |
#define | KEY_SCHED FOUR_TABLES |
#define | NO_TABLES 0 /* DO NOT CHANGE */ |
#define | ONE_TABLE 1 /* DO NOT CHANGE */ |
#define | FOUR_TABLES 4 /* DO NOT CHANGE */ |
#define | NONE 0 /* DO NOT CHANGE */ |
#define | PARTIAL 1 /* DO NOT CHANGE */ |
#define | FULL 2 /* DO NOT CHANGE */ |
#define | RC_LENGTH 5 * AES_BLOCK_SIZE / 4 - (AES_BLOCK_SIZE == 16 ? 10 : 11) |
#define | word_in(x) bytes2word((x)[0], (x)[1], (x)[2], (x)[3]) |
#define | word_out(x, v) |
#define | WPOLY 0x011b |
#define | BPOLY 0x1b |
#define | m1 0x80808080 |
#define | m2 0x7f7f7f7f |
#define | FFmulX(x) ((((x) & m2) << 1) ^ ((((x) & m1) >> 7) * BPOLY)) |
#define | FT4_SET |
#define | FL4_SET |
#define | IT4_SET |
#define | IL4_SET |
#define | LS4_SET |
#define | IM4_SET |
#define | prefx extern const |
#define | nc (AES_BLOCK_SIZE >> 2) |
#define | no_table(x, box, vf, rf, c) |
#define | one_table(x, op, tab, vf, rf, c) |
#define | four_tables(x, tab, vf, rf, c) |
#define | vf1(x, r, c) (x) |
#define | rf1(r, c) (r) |
#define | rf2(r, c) ((r-c)&3) |
#define | dec_fmvars |
#define | dec_fmvars aes_32t f1, f2; |
#define | fwd_mcol(x) (f1 = (x), f2 = FFmulX(f1), f2 ^ upr(f1 ^ f2, 3) ^ upr(f1, 2) ^ upr(f1, 1)) |
#define | dec_imvars |
#define | inv_mcol(x) four_tables(x,im_tab,vf1,rf1,0) |
#define | ls_box(x, c) four_tables(x,fl_tab,vf1,rf2,c) |
Variables | |
prefx aes_32t | rcon_tab [29] |
prefx aes_32t | ft_tab [4][256] |
prefx aes_32t | fl_tab [4][256] |
prefx aes_32t | it_tab [4][256] |
prefx aes_32t | il_tab [4][256] |
prefx aes_32t | im_tab [4][256] |
#define AES_BIG_ENDIAN 4321 /* byte 0 is most significant (mc68k) */ |
#define AES_LITTLE_ENDIAN 1234 /* byte 0 is least significant (i386) */ |
#define ARRAYS |
#define BPOLY 0x1b |
#define dec_fmvars |
#define dec_fmvars aes_32t f1, f2; |
#define dec_imvars |
#define DEC_ROUND FOUR_TABLES |
#define DEC_UNROLL FULL |
#define DECRYPTION |
#define DECRYPTION_KEY_SCHEDULE |
#define ENC_ROUND FOUR_TABLES |
#define ENC_UNROLL FULL |
#define ENCRYPTION |
#define ENCRYPTION_KEY_SCHEDULE |
#define FAST_VARIABLE |
#define FF_TABLES |
#define FIXED_TABLES |
#define FL4_SET |
#define FOUR_TABLES 4 /* DO NOT CHANGE */ |
#define four_tables | ( | x, | |
tab, | |||
vf, | |||
rf, | |||
c | |||
) |
#define FT4_SET |
#define FULL 2 /* DO NOT CHANGE */ |
#define fwd_mcol | ( | x | ) | (f1 = (x), f2 = FFmulX(f1), f2 ^ upr(f1 ^ f2, 3) ^ upr(f1, 2) ^ upr(f1, 1)) |
#define IL4_SET |
#define IM4_SET |
#define INTERNAL_BYTE_ORDER PLATFORM_BYTE_ORDER |
#define inv_mcol | ( | x | ) | four_tables(x,im_tab,vf1,rf1,0) |
#define IT4_SET |
#define KEY_SCHED FOUR_TABLES |
#define LAST_DEC_ROUND FOUR_TABLES |
#define LAST_ENC_ROUND FOUR_TABLES |
#define LS4_SET |
#define ls_box | ( | x, | |
c | |||
) | four_tables(x,fl_tab,vf1,rf2,c) |
#define m1 0x80808080 |
#define m2 0x7f7f7f7f |
#define nc (AES_BLOCK_SIZE >> 2) |
#define no_table | ( | x, | |
box, | |||
vf, | |||
rf, | |||
c | |||
) |
#define NO_TABLES 0 /* DO NOT CHANGE */ |
#define NONE 0 /* DO NOT CHANGE */ |
#define ONE_TABLE 1 /* DO NOT CHANGE */ |
#define one_table | ( | x, | |
op, | |||
tab, | |||
vf, | |||
rf, | |||
c | |||
) |
#define PARTIAL 1 /* DO NOT CHANGE */ |
#define prefx extern const |
#define RC_LENGTH 5 * AES_BLOCK_SIZE / 4 - (AES_BLOCK_SIZE == 16 ? 10 : 11) |
#define rf1 | ( | r, | |
c | |||
) | (r) |
#define rf2 | ( | r, | |
c | |||
) | ((r-c)&3) |
#define s | ( | x, | |
c | |||
) | x[c] |
#define SAFE_IO |
#define vf1 | ( | x, | |
r, | |||
c | |||
) | (x) |
#define word_in | ( | x | ) | bytes2word((x)[0], (x)[1], (x)[2], (x)[3]) |
#define word_out | ( | x, | |
v | |||
) |
#define WPOLY 0x011b |
prefx aes_32t fl_tab[4][256] |
prefx aes_32t ft_tab[4][256] |
prefx aes_32t il_tab[4][256] |
prefx aes_32t im_tab[4][256] |
prefx aes_32t it_tab[4][256] |
prefx aes_32t rcon_tab[29] |