mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-28 03:10:49 +00:00
30 lines
572 B
C
30 lines
572 B
C
#ifndef _MD5_H
|
|
#define _MD5_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct md5_context
|
|
{
|
|
uint32_t total[2];
|
|
uint32_t state[4];
|
|
uint8_t buffer[64];
|
|
};
|
|
|
|
void md5_starts(struct md5_context *ctx);
|
|
void md5_update_u32_as_lsb(struct md5_context *ctx, uint32_t input);
|
|
void md5_update(struct md5_context *ctx, uint8_t *input, uint32_t length);
|
|
void md5_finish(struct md5_context *ctx, uint8_t digest[16]);
|
|
|
|
/* Uses a static buffer, so beware of how it's used. */
|
|
char *md5_asciistr(uint8_t digest[16]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* md5.h */
|