8 #define RZ_CRYPTO_OUTPUT_SIZE 4096
86 goto rz_crypto_new_bad;
92 goto rz_crypto_new_bad;
97 goto rz_crypto_new_bad;
103 goto rz_crypto_new_bad;
120 if (cry->
h && cry->
h->
fini && !cry->
h->
fini(cry)) {
133 if (cry->
h && cry->
h->
fini && !cry->
h->
fini(cry)) {
138 if (
h &&
h->use(algo)) {
139 if (
h->init && !
h->init(cry)) {
153 keylen = strlen((
const char *)
key);
155 if (!cry || !cry->
h || !cry->
h->
set_key) {
162 return (cry && cry->
h && cry->
h->
set_iv) ? cry->
h->
set_iv(cry, iv, ivlen) : 0;
#define RZ_CRYPTO_STATIC_PLUGINS
RZ_API int rz_crypto_update(RzCrypto *cry, const ut8 *buf, int len)
static const struct @228 codec_name_bytes[]
static const struct @227 crypto_name_bytes[]
RZ_API bool rz_crypto_set_iv(RzCrypto *cry, const ut8 *iv, int ivlen)
RZ_API int rz_crypto_final(RzCrypto *cry, const ut8 *buf, int len)
RZ_API int rz_crypto_del(RzCrypto *cry, RzCryptoPlugin *h)
RZ_API int rz_crypto_add(RzCrypto *cry, RzCryptoPlugin *h)
RZ_API const char * rz_crypto_codec_name(const RzCryptoSelector bit)
RZ_API const ut8 * rz_crypto_get_output(RzCrypto *cry, int *size)
RZ_API const char * rz_crypto_name(const RzCryptoSelector bit)
RZ_LIB_VERSION(rz_crypto)
#define RZ_CRYPTO_OUTPUT_SIZE
RZ_API bool rz_crypto_set_key(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
RZ_API void rz_crypto_free(RzCrypto *cry)
RZ_API RzCrypto * rz_crypto_new(void)
RZ_API const RzCryptoPlugin * rz_crypto_plugin_by_index(size_t index)
RZ_API bool rz_crypto_use(RzCrypto *cry, const char *algo)
static RzCryptoPlugin * crypto_static_plugins[]
RZ_API int rz_crypto_append(RzCrypto *cry, const ut8 *buf, int len)
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)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
RZ_API RZ_OWN RzList * rz_list_newf(RzListFree f)
Returns a new initialized RzList pointer and sets the free method.
RZ_API bool rz_list_delete_data(RZ_NONNULL RzList *list, void *ptr)
Deletes an entry in the list by searching for a pointer.
RZ_API RZ_BORROW RzListIter * rz_list_append(RZ_NONNULL RzList *list, void *data)
Appends at the end of the list a new element.
RZ_API void rz_list_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
#define rz_warn_if_reached()
#define rz_warn_if_fail(expr)
#define RZ_CRYPTO_BLOWFISH
#define RZ_CRYPTO_DES_ECB
#define RZ_CRYPTO_AES_ECB
#define RZ_CODEC_PUNYCODE
#define RZ_CRYPTO_AES_CBC
#define RZ_CRYPTO_SERPENT
void(* RzListFree)(void *ptr)
#define RZ_LOG_ERROR(fmtstr,...)
bool(* update)(RzCrypto *cry, const ut8 *buf, int len)
bool(* set_key)(RzCrypto *cry, const ut8 *key, int keylen, int mode, int direction)
bool(* set_iv)(RzCrypto *cry, const ut8 *iv, int ivlen)
bool(* final)(RzCrypto *cry, const ut8 *buf, int len)
bool(* fini)(RzCrypto *cry)
struct rz_crypto_plugin_t * h