|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
| struct | rc2_state |
Macros | |
| #define | BITS 1024 |
| #define | RC2_KEY_SIZE 64 |
| #define | BLOCK_SIZE 8 |
Functions | |
| static bool | rc2_expandKey (struct rc2_state *state, const ut8 *key, int key_len) |
| static void | rc2_crypt8 (struct rc2_state *state, const ut8 *inbuf, ut8 *outbuf) |
| static void | rc2_dcrypt8 (struct rc2_state *state, const ut8 *inbuf, ut8 *outbuf) |
| static void | rc2_dcrypt (struct rc2_state *state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
| static void | rc2_crypt (struct rc2_state *state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
| static bool | rc2_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
| static int | rc2_get_key_size (RzCrypto *cry) |
| static bool | rc2_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 | rc2_init (RzCrypto *cry) |
| static bool | rc2_fini (RzCrypto *cry) |
Variables | |
| static const ut8 | PITABLE [256] |
| RzCryptoPlugin | rz_crypto_plugin_rc2 |
| RZ_API RzLibStruct | rizin_plugin |
| #define BITS 1024 |
Definition at line 8 of file crypto_rc2.c.
| #define BLOCK_SIZE 8 |
Definition at line 10 of file crypto_rc2.c.
| #define RC2_KEY_SIZE 64 |
Definition at line 9 of file crypto_rc2.c.
Definition at line 239 of file crypto_rc2.c.
|
static |
Definition at line 171 of file crypto_rc2.c.
References BLOCK_SIZE, buflen, i, setup::idx, inbuf, outbuf, and rc2_crypt8().
Referenced by update().
Definition at line 68 of file crypto_rc2.c.
References i, inbuf, outbuf, ut8, and x10.
Referenced by rc2_crypt().
|
static |
Definition at line 152 of file crypto_rc2.c.
References BLOCK_SIZE, buflen, i, setup::idx, inbuf, memcpy(), outbuf, and rc2_dcrypt8().
Referenced by update().
Definition at line 108 of file crypto_rc2.c.
References i, if(), inbuf, outbuf, ut8, and x10.
Referenced by rc2_dcrypt().
Definition at line 38 of file crypto_rc2.c.
References BITS, i, key, memcpy(), PITABLE, and RC2_KEY_SIZE.
Referenced by rc2_set_key().
Definition at line 250 of file crypto_rc2.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 211 of file crypto_rc2.c.
References rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 243 of file crypto_rc2.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
|
static |
Definition at line 202 of file crypto_rc2.c.
References rz_crypto_t::dir, key, rc2_expandKey(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 217 of file crypto_rc2.c.
Definition at line 221 of file crypto_rc2.c.
References calloc(), rz_crypto_t::dir, free(), len, obuf, rc2_crypt(), rc2_dcrypt(), rz_crypto_append(), RZ_CRYPTO_DIR_ENCRYPT, rz_return_val_if_fail, and rz_crypto_t::user.
Referenced by final().
Definition at line 12 of file crypto_rc2.c.
Referenced by rc2_expandKey().
| RZ_API RzLibStruct rizin_plugin |
Definition at line 271 of file crypto_rc2.c.
| RzCryptoPlugin rz_crypto_plugin_rc2 |
Definition at line 257 of file crypto_rc2.c.