Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | blowfish_state |
Macros | |
#define | BLOCK_SIZE 8 |
Functions | |
static void | swap (ut32 *left, ut32 *right) |
static ut32 | F (struct blowfish_state *const state, const ut32 inbuf) |
static void | blowfish_crypt (struct blowfish_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static void | blowfish_decrypt (struct blowfish_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen) |
static bool | blowfish_init_state (struct blowfish_state *const state, const ut8 *key, int keylen) |
static bool | blowfish_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | blowfish_get_key_size (RzCrypto *cry) |
static bool | blowfish_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 | blowfish_init (RzCrypto *cry) |
static bool | blowfish_fini (RzCrypto *cry) |
Variables | |
static const ut32 | p [18] |
static const ut32 | s [4][256] |
RzCryptoPlugin | rz_crypto_plugin_blowfish |
RZ_API RzLibStruct | rizin_plugin |
#define BLOCK_SIZE 8 |
Definition at line 14 of file crypto_blowfish.c.
|
static |
Definition at line 176 of file crypto_blowfish.c.
References buflen, eprintf, F(), inbuf, outbuf, and swap().
Referenced by blowfish_init_state(), and update().
|
static |
Definition at line 213 of file crypto_blowfish.c.
References buflen, eprintf, F(), inbuf, outbuf, and swap().
Referenced by update().
Definition at line 341 of file crypto_blowfish.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 298 of file crypto_blowfish.c.
References blowfish_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 334 of file crypto_blowfish.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
|
static |
Definition at line 250 of file crypto_blowfish.c.
References blowfish_crypt(), key, memcpy(), memset(), p, and s.
Referenced by blowfish_set_key().
|
static |
Definition at line 290 of file crypto_blowfish.c.
References blowfish_init_state(), rz_crypto_t::dir, key, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 305 of file crypto_blowfish.c.
|
static |
Definition at line 168 of file crypto_blowfish.c.
References a, b, c, d, and inbuf.
Referenced by blowfish_crypt(), and blowfish_decrypt().
Definition at line 330 of file crypto_blowfish.c.
Definition at line 160 of file crypto_blowfish.c.
Referenced by blowfish_crypt(), and blowfish_decrypt().
Definition at line 309 of file crypto_blowfish.c.
References blowfish_crypt(), blowfish_decrypt(), calloc(), rz_crypto_t::dir, free(), if(), len, obuf, rz_crypto_append(), RZ_CRYPTO_DIR_ENCRYPT, rz_return_val_if_fail, and rz_crypto_t::user.
Referenced by final().
Definition at line 16 of file crypto_blowfish.c.
Referenced by blowfish_init_state().
RZ_API RzLibStruct rizin_plugin |
Definition at line 362 of file crypto_blowfish.c.
RzCryptoPlugin rz_crypto_plugin_blowfish |
Definition at line 348 of file crypto_blowfish.c.
Definition at line 22 of file crypto_blowfish.c.
Referenced by blowfish_init_state().