Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | des_state |
Functions | |
static ut32 | be32 (const ut8 *buf4) |
static void | wbe32 (ut8 *buf4, ut32 val) |
static int | des_encrypt (struct des_state *st, const ut8 *input, ut8 *output) |
static int | des_decrypt (struct des_state *st, const ut8 *input, ut8 *output) |
static bool | des_set_key (RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction) |
static int | des_get_key_size (RzCrypto *cry) |
static bool | des_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 | des_init (RzCrypto *cry) |
static bool | des_fini (RzCrypto *cry) |
Variables | |
RzCryptoPlugin | rz_crypto_plugin_des |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 18 of file crypto_des.c.
References val.
Referenced by des_decrypt(), des_encrypt(), and des_set_key().
Definition at line 58 of file crypto_des.c.
References be32(), des_state::bufhi, des_state::buflo, des_state::i, input(), des_state::keyhi, des_state::keylo, output, rz_des_permute_block0(), rz_des_permute_block1(), rz_des_round(), and wbe32().
Referenced by update().
Definition at line 35 of file crypto_des.c.
References be32(), des_state::bufhi, des_state::buflo, des_state::i, input(), des_state::keyhi, des_state::keylo, output, rz_des_permute_block0(), rz_des_permute_block1(), rz_des_round(), and wbe32().
Referenced by update().
Definition at line 176 of file crypto_des.c.
References free(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 105 of file crypto_des.c.
References des_state::key_size, rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 170 of file crypto_des.c.
References NULL, RZ_NEW0, rz_return_val_if_fail, and rz_crypto_t::user.
|
static |
Definition at line 79 of file crypto_des.c.
References be32(), DES_KEY_SIZE, rz_crypto_t::dir, i, if(), key, des_state::key_size, des_state::keyhi, des_state::keylo, des_state::rounds, rz_des_permute_key(), rz_des_round_key(), rz_return_val_if_fail, and rz_crypto_t::user.
Definition at line 111 of file crypto_des.c.
Definition at line 166 of file crypto_des.c.
Definition at line 115 of file crypto_des.c.
References blocks, calloc(), DES_BLOCK_SIZE, des_decrypt(), des_encrypt(), rz_crypto_t::dir, free(), i, if(), len, memcpy(), memset(), obuf, rz_crypto_append(), RZ_CRYPTO_DIR_DECRYPT, rz_return_val_if_fail, and rz_crypto_t::user.
Referenced by final().
Definition at line 28 of file crypto_des.c.
References val.
Referenced by des_decrypt(), and des_encrypt().
RZ_API RzLibStruct rizin_plugin |
Definition at line 197 of file crypto_des.c.
RzCryptoPlugin rz_crypto_plugin_des |
Definition at line 183 of file crypto_des.c.