20 if (rotkey &&
key && keylen > 0) {
21 int i = atoi((
const char *)
key);
61 if (keylen > (
sizeof(
ut8) * 8) || keylen < 0) {
76 return !strcmp(algo,
"rot");
128 #ifndef RZ_PLUGIN_INCORE
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
static bool rol_init(RzCrypto *cry)
static bool update(RzCrypto *cry, const ut8 *buf, int len)
RZ_API RzLibStruct rizin_plugin
static void rot_crypt(ut8 key, const ut8 *inbuf, ut8 *outbuf, int buflen)
static bool rot_init_state(ut8 *rotkey, const ut8 *key, int keylen)
static bool rol_fini(RzCrypto *cry)
static bool rot_use(const char *algo)
static void rot_decrypt(ut8 key, const ut8 *inbuf, ut8 *outbuf, int buflen)
RzCryptoPlugin rz_crypto_plugin_rot
static bool rot_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
static int rot_get_key_size(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)
if(dbg->bits==RZ_SYS_BITS_64)
static unsigned char * obuf