Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rc4_state |
Functions | |
static __inline void | swap_bytes (ut8 *a, ut8 *b) |
static bool | rc4_init_state (struct rc4_state *const state, const ut8 *key, int keylen) |
static void | rc4_crypt (struct rc4_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static bool | rc4_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | rc4_get_key_size (RzCrypto *cry) |
static bool | rc4_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 | rc4_init (RzCrypto *cry) |
static bool | rc4_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_rc4 |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 108 of file crypto_rc4.c.
|
static |
Definition at line 57 of file crypto_rc4.c.
References buflen, i, inbuf, outbuf, and swap_bytes().
Referenced by update().
Definition at line 119 of file crypto_rc4.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 83 of file crypto_rc4.c.
References rc4_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 112 of file crypto_rc4.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 28 of file crypto_rc4.c.
References i, key, swap_bytes(), and ut8.
Referenced by rc4_set_key().
|
static |
Definition at line 76 of file crypto_rc4.c.
References key, rc4_init_state(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 90 of file crypto_rc4.c.
Definition at line 94 of file crypto_rc4.c.
References calloc(), free(), len, obuf, rc4_crypt(), rz_crypto_append(), rz_return_val_if_fail, and rz_crypto_t::user.
Referenced by final().
RZ_API RzLibStruct rizin_plugin |
Definition at line 140 of file crypto_rc4.c.
RzCryptoPlugin rz_crypto_plugin_rc4 |
Definition at line 126 of file crypto_rc4.c.