16 switch (
ctx->key_size) {
33 switch (
ctx->key_size) {
57 ctx->st.key_size = keylen;
92 return ctx->st.key_size;
108 return algo && !strcmp(algo,
"aes-cbc");
120 eprintf(
"IV not set. Use -I [iv]\n");
190 .author =
"rakholiyajenish.07",
202 #ifndef RZ_PLUGIN_INCORE
void aes128_encrypt(const struct aes128_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes128_decrypt(const struct aes128_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes128_set_encrypt_key(struct aes128_ctx *ctx, const uint8_t *key)
void aes128_set_decrypt_key(struct aes128_ctx *ctx, const uint8_t *key)
void aes192_encrypt(const struct aes192_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes256_encrypt(const struct aes256_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes256_set_decrypt_key(struct aes256_ctx *ctx, const uint8_t *key)
void aes256_set_encrypt_key(struct aes256_ctx *ctx, const uint8_t *key)
void aes192_set_decrypt_key(struct aes192_ctx *ctx, const uint8_t *key)
void aes256_decrypt(const struct aes256_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes192_decrypt(const struct aes192_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
void aes192_set_encrypt_key(struct aes192_ctx *ctx, const uint8_t *key)
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
static bool aes_cbc_set_iv(RzCrypto *cry, const ut8 *iv_src, int ivlen)
struct aes_cbc_context_t AesCbcCtx
static bool update(RzCrypto *cry, const ut8 *buf, int len)
RZ_API RzLibStruct rizin_plugin
static int aes_cbc_get_key_size(RzCrypto *cry)
static void encryptaes(struct aes_ctx *ctx, ut8 *in, ut8 *out)
static bool aes_cbc_fini(RzCrypto *cry)
static void decryptaes(struct aes_ctx *ctx, ut8 *in, ut8 *out)
static bool aes_cbc_use(const char *algo)
RzCryptoPlugin rz_crypto_plugin_aes_cbc
static bool aes_cbc_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
static bool aes_cbc_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
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_warn_if_reached()
#define rz_return_val_if_fail(expr, val)
if(dbg->bits==RZ_SYS_BITS_64)
static unsigned char * obuf