29 buf4[0] = (
val >> 24);
30 buf4[1] = (
val >> 16) & 0xFF;
31 buf4[2] = (
val >> 8) & 0xFF;
45 for (st->
i = 0; st->
i < 16; st->
i++) {
67 for (st->
i = 0; st->
i < 16; st->
i++) {
97 for (
i = 0;
i < 16;
i++) {
112 return algo && !strcmp(algo,
"des-ecb");
196 #ifndef RZ_PLUGIN_INCORE
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
static int des_encrypt(struct des_state *st, const ut8 *input, ut8 *output)
static void wbe32(ut8 *buf4, ut32 val)
static bool des_fini(RzCrypto *cry)
static bool des_use(const char *algo)
static bool update(RzCrypto *cry, const ut8 *buf, int len)
static int des_get_key_size(RzCrypto *cry)
static bool des_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
static bool des_init(RzCrypto *cry)
RZ_API RzLibStruct rizin_plugin
static int des_decrypt(struct des_state *st, const ut8 *input, ut8 *output)
static ut32 be32(const ut8 *buf4)
RzCryptoPlugin rz_crypto_plugin_des
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
RZ_API void rz_des_permute_key(ut32 *keylo, ut32 *keyhi)
Apply PC-1.
RZ_API void rz_des_round_key(int i, RZ_OUT ut32 *keylo, RZ_OUT ut32 *keyhi, RZ_INOUT ut32 *deskeylo, RZ_INOUT ut32 *deskeyhi)
Calculate the final key to be used in a given round.
RZ_API void rz_des_permute_block1(ut32 *blocklo, ut32 *blockhi)
last permutation of the block
RZ_API void rz_des_round(RZ_OUT ut32 *buflo, RZ_OUT ut32 *bufhi, RZ_IN ut32 *roundkeylo, RZ_IN ut32 *roundkeyhi)
Apply the cipher function (f)
RZ_API void rz_des_permute_block0(ut32 *blocklo, ut32 *blockhi)
first permutation of the input block
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * calloc(size_t number, size_t size)
#define rz_return_val_if_fail(expr, val)
if(dbg->bits==RZ_SYS_BITS_64)
static unsigned char * obuf
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)