8 #define MAX_xor_KEY_SIZE 32768
19 state->key_size = keylen;
51 return !strcmp(algo,
"xor");
103 #ifndef RZ_PLUGIN_INCORE
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
static bool update(RzCrypto *cry, const ut8 *buf, int len)
RZ_API RzLibStruct rizin_plugin
static bool xor_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
RzCryptoPlugin rz_crypto_plugin_xor
static void xor_crypt(struct xor_state *const state, const ut8 *inbuf, ut8 *outbuf, int buflen)
static int xor_get_key_size(RzCrypto *cry)
static bool xor_fini(RzCrypto *cry)
static bool xor_use(const char *algo)
static bool xor_init_state(struct xor_state *const state, const ut8 *key, int keylen)
static bool xor_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)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t 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