UwUHax/md5hash.h

17 lines
411 B
C
Raw Normal View History

2021-08-27 19:58:23 +08:00
#pragma once
#include <string.h>
#define MD5_DIGEST_LENGTH 16
typedef struct
{
unsigned buf[4];
unsigned bits[2];
unsigned char in[64];
} MD5Context_t;
void MD5Init(MD5Context_t *context);
void MD5Update(MD5Context_t *context, unsigned char const *buf, unsigned len);
void MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5Context_t *context);
unsigned MD5_PseudoRandom(unsigned nSeed);