35 state->key_size = keylen;
37 for (
i = 0;
i < 256;
i++) {
44 for (j =
i = 0;
i < 256;
i++) {
91 return !strcmp(algo,
"rc4");
139 #ifndef RZ_PLUGIN_INCORE
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
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 bool update(RzCrypto *cry, const ut8 *buf, int len)
static int rc4_get_key_size(RzCrypto *cry)
RZ_API RzLibStruct rizin_plugin
static bool rc4_use(const char *algo)
static __inline void swap_bytes(ut8 *a, ut8 *b)
static bool rc4_fini(RzCrypto *cry)
static bool rc4_init_state(struct rc4_state *const state, const ut8 *key, int keylen)
RzCryptoPlugin rz_crypto_plugin_rc4
static bool rc4_init(RzCrypto *cry)
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
unsigned char outbuf[SIZE]
unsigned char inbuf[SIZE]
RZ_API void Ht_() free(HtName_(Ht) *ht)
void * calloc(size_t number, size_t size)
#define rz_return_val_if_fail(expr, val)
static unsigned char * obuf