13
13
/* algorithm context */
14
14
typedef struct md5_ctx
16
unsigned message[md5_block_size/4]; /* 512-bit buffer for leftovers */
17
uint64_t length; /* number of processed bytes */
18
unsigned hash[4]; /* 128-bit algorithm internal hashing state */
16
unsigned message[md5_block_size/4]; /* 512-bit buffer for leftovers */
17
uint64_t length; /* number of processed bytes */
18
unsigned hash[4]; /* 128-bit algorithm internal hashing state */
21
21
/* hash functions */
23
void md5_init(md5_ctx *ctx);
24
void md5_update(md5_ctx *ctx, const unsigned char* msg, size_t size);
25
void md5_final(md5_ctx *ctx, unsigned char result[16]);
23
void rhash_md5_init(md5_ctx *ctx);
24
void rhash_md5_update(md5_ctx *ctx, const unsigned char* msg, size_t size);
25
void rhash_md5_final(md5_ctx *ctx, unsigned char result[16]);