Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static void | encryptaes (struct aes_ctx *ctx, ut8 *in, ut8 *out) |
static void | decryptaes (struct aes_ctx *ctx, ut8 *in, ut8 *out) |
static bool | aes_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | aes_get_key_size (RzCrypto *cry) |
static bool | aes_use (const char *algo) |
static bool | update (RzCrypto *cry, const ut8 *buf, int len) |
static bool | final (RzCrypto *cry, const ut8 *buf, int len) |
static bool | aes_ecb_init (RzCrypto *cry) |
static bool | aes_ecb_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_aes |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 154 of file crypto_aes.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 147 of file crypto_aes.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 81 of file crypto_aes.c.
References aes_ctx::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
|
static |
Definition at line 43 of file crypto_aes.c.
References AES128_KEY_SIZE, aes128_set_decrypt_key(), aes128_set_encrypt_key(), AES192_KEY_SIZE, aes192_set_decrypt_key(), aes192_set_encrypt_key(), AES256_KEY_SIZE, aes256_set_decrypt_key(), aes256_set_encrypt_key(), aes_ctx::ctx128, aes_ctx::ctx192, aes_ctx::ctx256, rz_crypto_t::dir, if(), key, aes_ctx::key_size, RZ_CRYPTO_DIR_ENCRYPT, rz_return_val_if_fail, rz_warn_if_reached, aes_ctx::u, and rz_crypto_t::user.
Definition at line 88 of file crypto_aes.c.
Definition at line 26 of file crypto_aes.c.
References aes128_decrypt(), AES128_KEY_SIZE, aes192_decrypt(), AES192_KEY_SIZE, aes256_decrypt(), AES256_KEY_SIZE, AES_BLOCK_SIZE, in, out, and rz_warn_if_reached.
Referenced by update().
Definition at line 9 of file crypto_aes.c.
References aes128_encrypt(), AES128_KEY_SIZE, aes192_encrypt(), AES192_KEY_SIZE, aes256_encrypt(), AES256_KEY_SIZE, AES_BLOCK_SIZE, in, out, and rz_warn_if_reached.
Referenced by update().
Definition at line 143 of file crypto_aes.c.
Definition at line 92 of file crypto_aes.c.
References AES_BLOCK_SIZE, blocks, calloc(), decryptaes(), delta, rz_crypto_t::dir, encryptaes(), free(), i, if(), len, memcpy(), memset(), obuf, rz_crypto_append(), RZ_CRYPTO_DIR_ENCRYPT, rz_return_val_if_fail, and rz_crypto_t::user.
Referenced by __print_default_cb(), __print_disasmsummary_cb(), __print_graph_cb(), delete_element(), final(), rz_skiplist_insert(), sdb_ht_insert_kvp(), and sdb_ht_internal_insert().
RZ_API RzLibStruct rizin_plugin |
Definition at line 175 of file crypto_aes.c.
RzCryptoPlugin rz_crypto_plugin_aes |
Definition at line 161 of file crypto_aes.c.