You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
562 B

/**
@file md5.h
*/
#ifndef __MD5_H
#define __MD5_H
/**
@brief MD5 context.
*/
typedef struct {
uint32 state[4]; /**< state (ABCD) */
uint32 count[2]; /**< number of bits, modulo 2^64 (lsb first) */
uint8 buffer[64]; /**< input buffer */
} md5_ctx;
extern void md5_init(md5_ctx *context);
extern void md5_update(md5_ctx *context, uint8 *buffer, uint32 length);
extern void md5_final(uint8 result[16], md5_ctx *context);
#endif // __md5_H