#include "asterisk/aes.h"
#include "asterisk/endian.h"
Go to the source code of this file.
Defines | |
#define | aes_sw32(x) ((brot((x),8) & 0x00ff00ff) | (brot((x),24) & 0xff00ff00)) |
#define | ALGORITHM_BYTE_ORDER PLATFORM_BYTE_ORDER |
#define | ARRAYS |
#define | BPOLY 0x1b |
#define | BRG_BIG_ENDIAN 4321 |
#define | BRG_LITTLE_ENDIAN 1234 |
#define | brot(x, n) (((aes_32t)(x) << n) | ((aes_32t)(x) >> (32 - n))) |
#define | d_1(t, n, b, v) extern const t n[256] |
#define | d_4(t, n, b, v) extern const t n[4][256] |
#define | dec_fmvars aes_32t g2 |
#define | dec_imvars aes_32t g2, g4, g9 |
#define | DEC_ROUND FOUR_TABLES |
#define | DEC_UNROLL FULL |
#define | ENC_ROUND FOUR_TABLES |
#define | ENC_UNROLL FULL |
#define | FF_TABLES |
#define | FIXED_TABLES |
#define | four_tables(x, tab, vf, rf, c) |
#define | FOUR_TABLES 4 |
#define | FULL 2 |
#define | fwd_mcol(x) (g2 = gf_mulx(x), g2 ^ upr((x) ^ g2, 3) ^ upr((x), 2) ^ upr((x), 1)) |
#define | gf_mulx(x) ((((x) & m2) << 1) ^ ((((x) & m1) >> 7) * BPOLY)) |
#define | inv_mcol(x) |
#define | KEY_SCHED FOUR_TABLES |
#define | LAST_DEC_ROUND FOUR_TABLES |
#define | LAST_ENC_ROUND FOUR_TABLES |
#define | ls_box(x, c) no_table(x,t_use(s,box),vf1,rf2,c) |
#define | m1 0x80808080 |
#define | m2 0x7f7f7f7f |
#define | no_table(x, box, vf, rf, c) |
#define | NO_TABLES 0 |
#define | NONE 0 |
#define | one_table(x, op, tab, vf, rf, c) |
#define | ONE_TABLE 1 |
#define | PARTIAL 1 |
#define | RC_LENGTH (5 * (AES_BLOCK_SIZE / 4 - 2)) |
#define | rf1(r, c) (r) |
#define | rf2(r, c) ((8+r-c)&3) |
#define | s(x, c) x[c] |
#define | SAFE_IO |
#define | t_dec(m, n) t_##m##n |
#define | t_set(m, n) t_##m##n |
#define | t_use(m, n) t_##m##n |
#define | vf1(x, r, c) (x) |
#define | word_in(x, c) |
#define | word_out(x, c, v) |
#define | WPOLY 0x011b |
Functions | |
const aes_32t | t_dec (r, c)[RC_LENGTH] |
#define aes_sw32 | ( | x | ) | ((brot((x),8) & 0x00ff00ff) | (brot((x),24) & 0xff00ff00)) |
#define brot | ( | x, | |||
n | ) | (((aes_32t)(x) << n) | ((aes_32t)(x) >> (32 - n))) |
#define four_tables | ( | x, | |||
tab, | |||||
vf, | |||||
rf, | |||||
c | ) |
#define fwd_mcol | ( | x | ) | (g2 = gf_mulx(x), g2 ^ upr((x) ^ g2, 3) ^ upr((x), 2) ^ upr((x), 1)) |
#define gf_mulx | ( | x | ) | ((((x) & m2) << 1) ^ ((((x) & m1) >> 7) * BPOLY)) |
#define inv_mcol | ( | x | ) |
#define m1 0x80808080 |
Definition at line 576 of file aesopt.h.
Referenced by sms_process(), and transtime().
#define no_table | ( | x, | |||
box, | |||||
vf, | |||||
rf, | |||||
c | ) |
#define NONE 0 |
Definition at line 240 of file aesopt.h.
Referenced by __sip_autodestruct(), __sip_show_channels(), handle_request_subscribe(), handle_response(), notify_extenstate_update(), sip_alloc(), sip_show_channel(), sip_show_history(), and transmit_state_notify().
#define one_table | ( | x, | |||
op, | |||||
tab, | |||||
vf, | |||||
rf, | |||||
c | ) |
#define s | ( | x, | |||
c | ) | x[c] |
Definition at line 399 of file aesopt.h.
Referenced by _macro_exec(), accept_thread(), add_sdp(), agent_devicestate(), agent_request(), aji_act_hook(), aji_send_exec(), aji_status_exec(), append_mailbox(), apply_options(), ast_app_parse_options(), ast_enum_init(), ast_filehelper(), ast_get_enum(), ast_get_txt(), ast_gethostbyname(), ast_lock_path(), ast_log_vsyslog(), ast_playtones_start(), ast_rtp_reload(), ast_say_number_full_ka(), ast_sched_del(), ast_sched_when(), ast_skip_nonblanks(), ast_smoother_new(), ast_udptl_reload(), ast_unlock_path(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), attempt_reconnect(), bc_state2str(), build_secret(), check_auth(), check_day(), check_dow(), check_month(), check_tx_freq(), common_exec(), complete_context_add_ignorepat(), complete_context_add_ignorepat_deprecated(), complete_context_add_include(), complete_context_add_include_deprecated(), complete_context_dont_include_deprecated(), complete_context_remove_extension(), complete_context_remove_extension_deprecated(), complete_context_remove_include(), complete_peer_helper(), conf_run(), connect_link(), console_dial(), console_dial_deprecated(), dahdi_call(), dahdi_request(), destroy_endpoint(), dundi_answer_entity(), dundi_answer_query(), dundi_prop_precache(), dundi_show_precache(), exec_exec(), filtroL(), filtroM(), filtroS(), find_closing_quote(), find_gtalk(), find_session(), forward_message(), function_enum(), function_ilink(), function_remote(), g726_open(), generic_http_callback(), get_csv(), get_filestream(), gtalk_request(), handle_request(), handle_response_peerpoke(), handle_save_dialplan(), handle_showmanconn(), handle_showmaneventq(), iax2_show_cache(), ic706_pltocode(), init_logger_chain(), initreqprep(), is_float(), is_int(), jb_reset(), kenwood_pltocode(), launch_netscript(), listener(), load_config(), manager_event(), ogg_vorbis_close(), ogg_vorbis_read(), ogg_vorbis_write(), parkandannounce_exec(), parse_config(), parse_moved_contact(), pbx_builtin_execiftime(), pbx_builtin_gotoiftime(), pbx_builtin_importvar(), pbx_builtin_wait(), pbx_retrieve_variable(), print_uptimestr(), privacy_exec(), process_sdp_a_image(), pvt_destructor(), queue_set_param(), quit_handler(), random_exec(), rbi_pltocode(), read_samples(), readfile_exec(), real_ctx(), record_exec(), recordthread(), reset_global_eid(), retreive_memory(), rpt(), rpt_do_lstats(), rpt_exec(), rpt_tele_thread(), rtp_socket(), sched_context_destroy(), send_signaling(), send_sound(), session_do(), setrbi(), setrbi_check(), skinny_answer(), skinny_call(), skinny_hangup(), skinny_hold(), skinny_indicate(), skinny_newcall(), skinny_session(), skinny_ss(), skinny_unhold(), sms_readfile(), strlcat(), strlcpy(), strtoq(), transmit_fake_auth_response(), tryexec_exec(), unload_module(), vasprintf(), vmauthenticate(), wav_seek(), and wav_write().
#define word_in | ( | x, | |||
c | ) |
#define word_out | ( | x, | |||
c, | |||||
v | ) |
const aes_32t t_dec | ( | r | , | |
c | ||||
) |