Go to the source code of this file.
◆ rz_fletcher_common_plugin_context_free
#define rz_fletcher_common_plugin_context_free |
( |
|
bits | ) |
|
Value: static void plugin_fletcher##
bits##_context_free(
void *
context) { \
}
int bits(struct state *s, int need)
Definition at line 14 of file algo_fletcher.c.
◆ rz_fletcher_common_plugin_context_new
#define rz_fletcher_common_plugin_context_new |
( |
|
bits | ) |
|
Value: static void *plugin_fletcher##
bits##_context_new() { \
}
Definition at line 9 of file algo_fletcher.c.
◆ rz_fletcher_common_plugin_define_hash_cfg
#define rz_fletcher_common_plugin_define_hash_cfg |
( |
|
bits | ) |
|
Value:
rz_fletcher_common_plugin_context_free(
bits); \
rz_fletcher_common_plugin_digest_size(
bits); \
rz_fletcher_common_plugin_init(
bits); \
rz_fletcher_common_plugin_update(
bits); \
rz_fletcher_common_plugin_final(
bits); \
rz_fletcher_common_plugin_small_block(
bits); \
RzHashPlugin rz_hash_plugin_fletcher##
bits = { \
.name =
"fletcher" #
bits, \
.license = "LGPL3", \
.author = "deroad", \
.support_hmac = false, \
.context_new = plugin_fletcher##
bits##_context_new, \
.context_free = plugin_fletcher##
bits##_context_free, \
.digest_size = plugin_fletcher##
bits##_digest_size, \
.init = plugin_fletcher##
bits##_init, \
.update = plugin_fletcher##
bits##_update, \
.final = plugin_fletcher##
bits##_final, \
.small_block = plugin_fletcher##
bits##_small_block, \
}; \
rz_lib_fletcher_common(
bits)
#define rz_fletcher_common_plugin_context_new(bits)
static RzHashSize plugin_fletcher_block_size(void *context)
Definition at line 74 of file algo_fletcher.c.
◆ rz_fletcher_common_plugin_digest_size
#define rz_fletcher_common_plugin_digest_size |
( |
|
bits | ) |
|
◆ rz_fletcher_common_plugin_final
#define rz_fletcher_common_plugin_final |
( |
|
bits | ) |
|
Value: static bool plugin_fletcher##
bits##_final(
void *
context,
ut8 *digest) { \
rz_return_val_if_fail(
context &&digest,
false); \
return true; \
}
Definition at line 38 of file algo_fletcher.c.
◆ rz_fletcher_common_plugin_init
#define rz_fletcher_common_plugin_init |
( |
|
bits | ) |
|
◆ rz_fletcher_common_plugin_small_block
#define rz_fletcher_common_plugin_small_block |
( |
|
bits | ) |
|
Value:
rz_return_val_if_fail(data &&digest, false); \
ut8 *dgst =
malloc(RZ_HASH_FLETCHER##
bits##_DIGEST_SIZE); \
if (!dgst) { \
return false; \
} \
rz_fletcher##
bits##_final(dgst, &
ctx); \
*digest = dgst; \
if (digest_size) { \
*digest_size = RZ_HASH_FLETCHER##
bits##_DIGEST_SIZE; \
} \
return true; \
}
void * malloc(size_t size)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
Definition at line 45 of file algo_fletcher.c.
◆ rz_fletcher_common_plugin_update
#define rz_fletcher_common_plugin_update |
( |
|
bits | ) |
|
◆ rz_lib_fletcher_common
#define rz_lib_fletcher_common |
( |
|
bits | ) |
|
Value:
.data = &rz_hash_plugin_fletcher##
bits, \
}
RZ_API RzLibStruct rizin_plugin
Definition at line 64 of file algo_fletcher.c.
◆ plugin_fletcher_block_size()
static RzHashSize plugin_fletcher_block_size |
( |
void * |
context | ) |
|
|
static |
◆ rz_fletcher_common_plugin_define_hash_cfg() [1/4]
rz_fletcher_common_plugin_define_hash_cfg |
( |
16 |
| ) |
|
◆ rz_fletcher_common_plugin_define_hash_cfg() [2/4]
rz_fletcher_common_plugin_define_hash_cfg |
( |
32 |
| ) |
|
◆ rz_fletcher_common_plugin_define_hash_cfg() [3/4]
rz_fletcher_common_plugin_define_hash_cfg |
( |
64 |
| ) |
|
◆ rz_fletcher_common_plugin_define_hash_cfg() [4/4]
rz_fletcher_common_plugin_define_hash_cfg |
( |
8 |
| ) |
|