Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | xor_state |
Macros | |
#define | MAX_xor_KEY_SIZE 32768 |
Functions | |
static bool | xor_init_state (struct xor_state *const state, const ut8 *key, int keylen) |
static void | xor_crypt (struct xor_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static bool | xor_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | xor_get_key_size (RzCrypto *cry) |
static bool | xor_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 | xor_init (RzCrypto *cry) |
static bool | xor_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_xor |
RZ_API RzLibStruct | rizin_plugin |
#define MAX_xor_KEY_SIZE 32768 |
Definition at line 8 of file crypto_xor.c.
Definition at line 68 of file crypto_xor.c.
Definition at line 54 of file crypto_xor.c.
References calloc(), free(), len, obuf, rz_crypto_append(), rz_return_val_if_fail, rz_crypto_t::user, and xor_crypt().
Referenced by final().
|
static |
Definition at line 79 of file crypto_xor.c.
References free(), if(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 43 of file crypto_xor.c.
References xor_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 72 of file crypto_xor.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 15 of file crypto_xor.c.
References key, malloc(), and memcpy().
Referenced by xor_set_key().
|
static |
Definition at line 36 of file crypto_xor.c.
References key, rz_return_val_if_fail, rz_crypto_t::user, and xor_init_state().
Definition at line 50 of file crypto_xor.c.
RZ_API RzLibStruct rizin_plugin |
Definition at line 104 of file crypto_xor.c.
RzCryptoPlugin rz_crypto_plugin_xor |
Definition at line 90 of file crypto_xor.c.