UwUHax/md5hash.h
2021-08-27 18:58:23 +07:00

17 lines
411 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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);