Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
Go to the source code of this file.
Classes | |
struct | fletcher8_t |
struct | fletcher16_t |
struct | fletcher32_t |
struct | fletcher64_t |
Macros | |
#define | RZ_HASH_FLETCHER8_DIGEST_SIZE 1 |
#define | RZ_HASH_FLETCHER_BLOCK_LENGTH 0 |
#define | RZ_HASH_FLETCHER16_DIGEST_SIZE 2 |
#define | RZ_HASH_FLETCHER32_DIGEST_SIZE 4 |
#define | RZ_HASH_FLETCHER64_DIGEST_SIZE 8 |
Typedefs | |
typedef struct fletcher8_t | RzFletcher8 |
typedef struct fletcher16_t | RzFletcher16 |
typedef struct fletcher32_t | RzFletcher32 |
typedef struct fletcher64_t | RzFletcher64 |
Functions | |
bool | rz_fletcher8_init (RzFletcher8 *ctx) |
bool | rz_fletcher8_update (RzFletcher8 *ctx, const ut8 *data, size_t len) |
bool | rz_fletcher8_final (ut8 *digest, RzFletcher8 *ctx) |
bool | rz_fletcher16_init (RzFletcher16 *ctx) |
bool | rz_fletcher16_update (RzFletcher16 *ctx, const ut8 *data, size_t len) |
bool | rz_fletcher16_final (ut8 *digest, RzFletcher16 *ctx) |
bool | rz_fletcher32_init (RzFletcher32 *ctx) |
bool | rz_fletcher32_update (RzFletcher32 *ctx, const ut8 *data, size_t len) |
bool | rz_fletcher32_final (ut8 *digest, RzFletcher32 *ctx) |
bool | rz_fletcher64_init (RzFletcher64 *ctx) |
bool | rz_fletcher64_update (RzFletcher64 *ctx, const ut8 *data, size_t len) |
bool | rz_fletcher64_final (ut8 *digest, RzFletcher64 *ctx) |
#define RZ_HASH_FLETCHER16_DIGEST_SIZE 2 |
Definition at line 20 of file fletcher.h.
#define RZ_HASH_FLETCHER32_DIGEST_SIZE 4 |
Definition at line 30 of file fletcher.h.
#define RZ_HASH_FLETCHER64_DIGEST_SIZE 8 |
Definition at line 40 of file fletcher.h.
#define RZ_HASH_FLETCHER8_DIGEST_SIZE 1 |
Definition at line 9 of file fletcher.h.
#define RZ_HASH_FLETCHER_BLOCK_LENGTH 0 |
Definition at line 10 of file fletcher.h.
typedef struct fletcher16_t RzFletcher16 |
typedef struct fletcher32_t RzFletcher32 |
typedef struct fletcher64_t RzFletcher64 |
typedef struct fletcher8_t RzFletcher8 |
bool rz_fletcher16_final | ( | ut8 * | digest, |
RzFletcher16 * | ctx | ||
) |
Definition at line 58 of file fletcher.c.
References rz_return_val_if_fail, and rz_write_le16().
bool rz_fletcher16_init | ( | RzFletcher16 * | ctx | ) |
Definition at line 34 of file fletcher.c.
References memset(), and rz_return_val_if_fail.
bool rz_fletcher16_update | ( | RzFletcher16 * | ctx, |
const ut8 * | data, | ||
size_t | len | ||
) |
bool rz_fletcher32_final | ( | ut8 * | digest, |
RzFletcher32 * | ctx | ||
) |
Definition at line 101 of file fletcher.c.
References rz_return_val_if_fail, rz_write_le32(), and UT16_MAX.
bool rz_fletcher32_init | ( | RzFletcher32 * | ctx | ) |
Definition at line 68 of file fletcher.c.
References memset(), and rz_return_val_if_fail.
bool rz_fletcher32_update | ( | RzFletcher32 * | ctx, |
const ut8 * | data, | ||
size_t | len | ||
) |
Definition at line 74 of file fletcher.c.
References i, len, memcpy(), memset(), RZ_MIN, rz_read_le16(), rz_return_val_if_fail, and UT16_MAX.
bool rz_fletcher64_final | ( | ut8 * | digest, |
RzFletcher64 * | ctx | ||
) |
Definition at line 132 of file fletcher.c.
References rz_return_val_if_fail, rz_write_le64(), and ut64().
bool rz_fletcher64_init | ( | RzFletcher64 * | ctx | ) |
Definition at line 111 of file fletcher.c.
References memset(), and rz_return_val_if_fail.
bool rz_fletcher64_update | ( | RzFletcher64 * | ctx, |
const ut8 * | data, | ||
size_t | len | ||
) |
Definition at line 117 of file fletcher.c.
References i, len, memcpy(), memset(), RZ_MIN, rz_read_le32(), rz_return_val_if_fail, and value.
bool rz_fletcher8_final | ( | ut8 * | digest, |
RzFletcher8 * | ctx | ||
) |
bool rz_fletcher8_init | ( | RzFletcher8 * | ctx | ) |
Definition at line 9 of file fletcher.c.
References memset(), and rz_return_val_if_fail.
bool rz_fletcher8_update | ( | RzFletcher8 * | ctx, |
const ut8 * | data, | ||
size_t | len | ||
) |