Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rol_state |
Macros | |
#define | NAME "rol" |
Enumerations | |
enum | { MAX_rol_KEY_SIZE = 32768 } |
Functions | |
static bool | rol_init_state (struct rol_state *const state, const ut8 *key, int keylen) |
static void | rol_crypt (struct rol_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static bool | rol_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | rol_get_key_size (RzCrypto *cry) |
static bool | rol_use (const char *algo) |
static bool | update (RzCrypto *cry, const ut8 *buf, int len) |
static bool | rol_init (RzCrypto *cry) |
static bool | rol_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_rol |
RZ_API RzLibStruct | rizin_plugin |
#define NAME "rol" |
Definition at line 8 of file crypto_rol.c.
anonymous enum |
|
static |
Definition at line 29 of file crypto_rol.c.
References buflen, count, i, inbuf, and outbuf.
Referenced by update().
Definition at line 82 of file crypto_rol.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 46 of file crypto_rol.c.
References rol_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 75 of file crypto_rol.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 17 of file crypto_rol.c.
References i, key, and MAX_rol_KEY_SIZE.
Referenced by rol_set_key().
|
static |
Definition at line 38 of file crypto_rol.c.
References rz_crypto_t::dir, key, rol_init_state(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 53 of file crypto_rol.c.
References NAME.
Definition at line 57 of file crypto_rol.c.
References calloc(), rz_crypto_t::dir, eprintf, free(), if(), len, obuf, rol_crypt(), rz_crypto_append(), rz_return_val_if_fail, and rz_crypto_t::user.
RZ_API RzLibStruct rizin_plugin |
Definition at line 103 of file crypto_rol.c.
RzCryptoPlugin rz_crypto_plugin_rol |
Definition at line 89 of file crypto_rol.c.