Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | ror_state |
Macros | |
#define | NAME "ror" |
Enumerations | |
enum | { MAX_ror_KEY_SIZE = 32768 } |
Functions | |
static bool | ror_init_state (struct ror_state *const state, const ut8 *key, int keylen) |
static void | ror_crypt (struct ror_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static bool | ror_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | ror_get_key_size (RzCrypto *cry) |
static bool | ror_use (const char *algo) |
static bool | update (RzCrypto *cry, const ut8 *buf, int len) |
static bool | ror_init (RzCrypto *cry) |
static bool | ror_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_ror |
RZ_API RzLibStruct | rizin_plugin |
#define NAME "ror" |
Definition at line 8 of file crypto_ror.c.
anonymous enum |
|
static |
Definition at line 29 of file crypto_ror.c.
References buflen, count, i, inbuf, and outbuf.
Referenced by update().
Definition at line 82 of file crypto_ror.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 46 of file crypto_ror.c.
References ror_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 75 of file crypto_ror.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 17 of file crypto_ror.c.
References i, key, and MAX_ror_KEY_SIZE.
Referenced by ror_set_key().
|
static |
Definition at line 38 of file crypto_ror.c.
References rz_crypto_t::dir, key, ror_init_state(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 53 of file crypto_ror.c.
References NAME.
Definition at line 57 of file crypto_ror.c.
References calloc(), rz_crypto_t::dir, eprintf, free(), if(), len, obuf, ror_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_ror.c.
RzCryptoPlugin rz_crypto_plugin_ror |
Definition at line 89 of file crypto_ror.c.