Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | aes_cbc_context_t |
Typedefs | |
typedef struct aes_cbc_context_t | AesCbcCtx |
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_cbc_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | aes_cbc_get_key_size (RzCrypto *cry) |
static bool | aes_cbc_set_iv (RzCrypto *cry, const ut8 *iv_src, int ivlen) |
static bool | aes_cbc_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_cbc_init (RzCrypto *cry) |
static bool | aes_cbc_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_aes_cbc |
RZ_API RzLibStruct | rizin_plugin |
typedef struct aes_cbc_context_t AesCbcCtx |
Definition at line 181 of file crypto_aes_cbc.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 88 of file crypto_aes_cbc.c.
References rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 174 of file crypto_aes_cbc.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 95 of file crypto_aes_cbc.c.
References AES_BLOCK_SIZE, if(), memcpy(), rz_return_val_if_fail, and rz_crypto_t::user.
|
static |
Definition at line 49 of file crypto_aes_cbc.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(), rz_crypto_t::dir, key, RZ_CRYPTO_DIR_ENCRYPT, rz_return_val_if_fail, rz_warn_if_reached, and rz_crypto_t::user.
Definition at line 107 of file crypto_aes_cbc.c.
Definition at line 32 of file crypto_aes_cbc.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 15 of file crypto_aes_cbc.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 170 of file crypto_aes_cbc.c.
Definition at line 111 of file crypto_aes_cbc.c.
References AES_BLOCK_SIZE, blocks, calloc(), decryptaes(), rz_crypto_t::dir, encryptaes(), eprintf, 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 final().
RZ_API RzLibStruct rizin_plugin |
Definition at line 203 of file crypto_aes_cbc.c.
RzCryptoPlugin rz_crypto_plugin_aes_cbc |
Definition at line 188 of file crypto_aes_cbc.c.