Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | PUT_64BIT_LE(cp, value) |
#define | F1(x, y, z) (z ^ (x & (y ^ z))) |
#define | F2(x, y, z) F1(z, x, y) |
#define | F3(x, y, z) (x ^ y ^ z) |
#define | F4(x, y, z) (y ^ (x | ~z)) |
#define | MD5STEP(f, w, x, y, z, data, s) (w += f(x, y, z) + data, w = w << s | w >> (32 - s), w += x) |
Functions | |
static void | MD5Transform (ut32 state[4], const ut8 block[MD5_BLOCK_LENGTH]) |
RZ_IPI void | rz_MD5Init (rz_MD5_CTX *ctx) |
RZ_IPI void | rz_MD5Update (rz_MD5_CTX *ctx, const unsigned char *input, size_t len) |
RZ_IPI void | rz_MD5Final (unsigned char digest[MD5_DIGEST_LENGTH], rz_MD5_CTX *ctx) |
Variables | |
static ut8 | PADDING [MD5_BLOCK_LENGTH] |
Definition at line 73 of file md5.c.
References a, b, c, d, F1, F2, F3, F4, in, MD5_BLOCK_LENGTH, MD5STEP, and rz_read_at_le32().
Referenced by rz_MD5Update().
RZ_IPI void rz_MD5Final | ( | unsigned char | digest[MD5_DIGEST_LENGTH], |
rz_MD5_CTX * | ctx | ||
) |
Definition at line 218 of file md5.c.
References count, i, MD5_BLOCK_LENGTH, NULL, PADDING, PUT_64BIT_LE, rz_MD5Update(), rz_mem_memzero(), and rz_write_le32().
Referenced by plugin_md5_final(), and plugin_md5_small_block().
RZ_IPI void rz_MD5Init | ( | rz_MD5_CTX * | ctx | ) |
Definition at line 163 of file md5.c.
Referenced by plugin_md5_init(), and plugin_md5_small_block().
RZ_IPI void rz_MD5Update | ( | rz_MD5_CTX * | ctx, |
const unsigned char * | input, | ||
size_t | len | ||
) |
Definition at line 176 of file md5.c.
References input(), len, MD5_BLOCK_LENGTH, MD5Transform(), and memcpy().
Referenced by plugin_md5_small_block(), plugin_md5_update(), and rz_MD5Final().
|
static |
Definition at line 50 of file md5.c.
Referenced by rz_MD5Final().