10 switch (
ctx->key_size) {
27 switch (
ctx->key_size) {
89 return !strcmp(algo,
"aes-ecb");
163 .author =
"Nettle project (algorithm implementation), pancake (plugin)",
174 #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_use(const char *algo)
static bool aes_ecb_fini(RzCrypto *cry)
static bool update(RzCrypto *cry, const ut8 *buf, int len)
RZ_API RzLibStruct rizin_plugin
static void encryptaes(struct aes_ctx *ctx, ut8 *in, ut8 *out)
static bool aes_ecb_init(RzCrypto *cry)
static int aes_get_key_size(RzCrypto *cry)
static void decryptaes(struct aes_ctx *ctx, ut8 *in, ut8 *out)
RzCryptoPlugin rz_crypto_plugin_aes
static bool aes_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
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