4 #ifndef RZ_MSG_DIGEST_H
5 #define RZ_MSG_DIGEST_H
31 void *(*context_new)();
61 #define rz_hash_cfg_new_with_algo2(rh, name) rz_hash_cfg_new_with_algo(rh, name, NULL, 0);
static unsigned invert(unsigned x)
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
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 static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
RZ_API double rz_hash_entropy_fraction(RZ_NONNULL RzHash *rh, RZ_NONNULL const ut8 *data, ut64 len)
RZ_API RZ_BORROW const ut8 * rz_hash_cfg_get_result(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const char *name, RZ_NONNULL ut32 *size)
Returns the digest value of the requested algorithm name.
RZ_API RZ_OWN RzHashCfg * rz_hash_cfg_new(RZ_NONNULL RzHash *rh)
RZ_API bool rz_hash_plugin_add(RZ_NONNULL RzHash *rh, RZ_NONNULL RZ_OWN const RzHashPlugin *plugin)
Add a new plugin to rh so that RzHashCfg can be created using specific algorithms.
RZ_API RZ_OWN char * rz_hash_cfg_calculate_small_block_string(RZ_NONNULL RzHash *rh, RZ_NONNULL const char *name, RZ_NONNULL const ut8 *buffer, ut64 bsize, RZ_NULLABLE ut32 *size, bool invert)
RZ_API void rz_hash_cfg_free(RZ_NONNULL RzHashCfg *md)
RZ_API bool rz_hash_cfg_iterate(RZ_NONNULL RzHashCfg *md, size_t iterate)
Calculate the final hash by iterating its result N times.
RZ_API RzHashSize rz_hash_cfg_size(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const char *name)
Returns the digest size of the requested algorithm name.
RZ_API void rz_hash_free(RzHash *rh)
RZ_API RZ_BORROW const RzHashPlugin * rz_hash_plugin_by_name(RZ_NONNULL RzHash *rh, RZ_NONNULL const char *name)
RZ_API RZ_BORROW const RzHashPlugin * rz_hash_plugin_by_index(RZ_NONNULL RzHash *rh, size_t index)
RZ_API ut32 rz_hash_xxhash(RZ_NONNULL RzHash *rh, RZ_NONNULL const ut8 *input, size_t size)
RZ_API RzHash * rz_hash_new(void)
RZ_API RZ_OWN ut8 * rz_hash_cfg_calculate_small_block(RZ_NONNULL RzHash *rh, RZ_NONNULL const char *name, RZ_NONNULL const ut8 *buffer, ut64 bsize, RZ_NONNULL RzHashSize *osize)
Returns the digest size of the requested algorithm name.
RZ_API RZ_OWN RzHashCfg * rz_hash_cfg_new_with_algo(RZ_NONNULL RzHash *rh, RZ_NONNULL const char *name, RZ_NULLABLE const ut8 *key, ut64 key_size)
Returns a message digest context with the give algo already configured.
RZ_API bool rz_hash_cfg_configure(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const char *name)
Allocates and configures the plugin message digest context.
RZ_API double rz_hash_entropy(RZ_NONNULL RzHash *rh, RZ_NONNULL const ut8 *data, ut64 len)
RZ_API bool rz_hash_cfg_hmac(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const ut8 *key, ut64 key_size)
Sets the key for the hmac algorithm.
RZ_API bool rz_hash_cfg_init(RZ_NONNULL RzHashCfg *md)
Resets/initialize the message digest contextes.
RZ_API bool rz_hash_cfg_update(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const ut8 *data, ut64 size)
Inserts data into each the message digest contextes.
RZ_API bool rz_hash_cfg_final(RZ_NONNULL RzHashCfg *md)
Generates the final value of the message digest contextes.
RZ_API RZ_OWN char * rz_hash_cfg_get_result_string(RZ_NONNULL RzHashCfg *md, RZ_NONNULL const char *name, RZ_NULLABLE ut32 *size, bool invert)
Returns the digest value of the requested algorithm name.
RZ_API RZ_OWN char * rz_hash_cfg_randomart(RZ_NONNULL const ut8 *buffer, ut32 length, ut64 address)
Generates a randomart that is meant to be an easily validate buffers.
RzHashPlugin rz_hash_plugin_crca_crc32ecma267
RzHashPlugin rz_hash_plugin_adler32
RZ_LIB_VERSION_HEADER(rz_hash)
RzHashPlugin rz_hash_plugin_crca_crc16dnp
RzHashPlugin rz_hash_plugin_md4
RzHashPlugin rz_hash_plugin_fletcher32
RzHashPlugin rz_hash_plugin_crca_crc16genibus
RzHashPlugin rz_hash_plugin_crca_crc8smbus
RzHashPlugin rz_hash_plugin_crca_crc16usb
RzHashPlugin rz_hash_plugin_crca_crc32d
RzHashPlugin rz_hash_plugin_crca_crc16modbus
RzHashPlugin rz_hash_plugin_md5
RzHashPlugin rz_hash_plugin_crca_crc8maxim
RzHashPlugin rz_hash_plugin_crca_crc8dvbs2
RzHashPlugin rz_hash_plugin_xxhash32
@ RZ_MSG_DIGEST_STATUS_INIT
@ RZ_MSG_DIGEST_STATUS_ALLOC
@ RZ_MSG_DIGEST_STATUS_UPDATE
@ RZ_MSG_DIGEST_STATUS_FINAL
RzHashPlugin rz_hash_plugin_crca_crc16en13757
RzHashPlugin rz_hash_plugin_crca_crc32posix
RzHashPlugin rz_hash_plugin_crca_crc16maxim
RzHashPlugin rz_hash_plugin_crca_crc32
RzHashPlugin rz_hash_plugin_fletcher8
RzHashPlugin rz_hash_plugin_crca_crc8itu
RzHashPlugin rz_hash_plugin_sha512
RzHashPlugin rz_hash_plugin_crca_crc16buypass
RzHashPlugin rz_hash_plugin_crca_crc16t10dif
RzHashPlugin rz_hash_plugin_xor8
RzHashPlugin rz_hash_plugin_crca_crc16dds110
RzHashPlugin rz_hash_plugin_sha1
RzHashPlugin rz_hash_plugin_crca_crc8ebu
RzHashPlugin rz_hash_plugin_crca_crc16teledisk
RzHashPlugin rz_hash_plugin_crca_crc64iso
RzHashPlugin rz_hash_plugin_crca_crc32c
RzHashPlugin rz_hash_plugin_crca_crc8wcdma
RzHashPlugin rz_hash_plugin_crca_crc16tms37157
RzHashPlugin rz_hash_plugin_crca_crc16riello
RzHashPlugin rz_hash_plugin_crca_crc16x25
RzHashPlugin rz_hash_plugin_crca_crc32bzip2
RzHashPlugin rz_hash_plugin_crca_crc8rohc
RzHashPlugin rz_hash_plugin_fletcher64
RzHashPlugin rz_hash_plugin_crca_crc16mcrf4xx
RzHashPlugin rz_hash_plugin_crca_crc16cdma2000
RzHashPlugin rz_hash_plugin_crca_crc8darc
RzHashPlugin rz_hash_plugin_parity
RzHashPlugin rz_hash_plugin_crca_crc16dectr
RzHashPlugin rz_hash_plugin_crca_crc16dectx
RzHashPlugin rz_hash_plugin_crca_crc16xmodem
RzHashPlugin rz_hash_plugin_crca_crc32xfer
RzHashPlugin rz_hash_plugin_crca_crc32q
RzHashPlugin rz_hash_plugin_crca_crc16hdlc
RzHashPlugin rz_hash_plugin_xor16
RzHashPlugin rz_hash_plugin_entropy
RzHashPlugin rz_hash_plugin_crca_crc64we
RzHashPlugin rz_hash_plugin_crca_crc32jamcrc
RzHashPlugin rz_hash_plugin_entropy_fract
RzHashPlugin rz_hash_plugin_sha384
RzHashPlugin rz_hash_plugin_sha256
RzHashPlugin rz_hash_plugin_crca_crc15can
RzHashPlugin rz_hash_plugin_crca_crc24
RzHashPlugin rz_hash_plugin_crca_crc16augccitt
RzHashPlugin rz_hash_plugin_crca_crc64ecma182
RzHashPlugin rz_hash_plugin_crca_crc8icode
RzHashPlugin rz_hash_plugin_crca_crc16
struct rz_hash_cfg_t RzHashCfg
RzHashPlugin rz_hash_plugin_crca_crc16citt
RzHashPlugin rz_hash_plugin_crca_crc64xz
RzHashPlugin rz_hash_plugin_crca_crc32mpeg2
RzHashPlugin rz_hash_plugin_crca_crca
RzHashPlugin rz_hash_plugin_crca_crc8cdma2000
RzHashPlugin rz_hash_plugin_crca_crc16kermit
struct rz_hash_plugin_t RzHashPlugin
RzHashPlugin rz_hash_plugin_fletcher16
RzHashPlugin rz_hash_plugin_crca_crc64
RzHashSize(* block_size)(void *context)
RzHashSize(* digest_size)(void *context)
bool(* small_block)(const ut8 *data, ut64 size, ut8 **digest, RzHashSize *digest_size)
bool(* update)(void *context, const ut8 *data, ut64 size)
bool(* init)(void *context)
void(* context_free)(void *context)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)