mirror of
https://github.com/dborth/fceugx.git
synced 2024-11-01 06:55:05 +01:00
24 lines
519 B
C
24 lines
519 B
C
#ifndef _MD5_H
|
|
#define _MD5_H
|
|
|
|
#include "../types.h"
|
|
#include "valuearray.h"
|
|
|
|
struct md5_context
|
|
{
|
|
uint32 total[2];
|
|
uint32 state[4];
|
|
uint8 buffer[64];
|
|
};
|
|
|
|
typedef ValueArray<uint8,16> MD5DATA;
|
|
|
|
void md5_starts( struct md5_context *ctx );
|
|
void md5_update( struct md5_context *ctx, uint8 *input, uint32 length );
|
|
void md5_finish( struct md5_context *ctx, uint8 digest[16] );
|
|
|
|
/* Uses a static buffer, so beware of how it's used. */
|
|
char *md5_asciistr(MD5DATA& md5);
|
|
|
|
#endif /* md5.h */
|