mongoose/src/md5.h

14 lines
288 B
C
Raw Normal View History

2020-12-05 19:26:32 +08:00
#pragma once
#include "arch.h"
typedef struct {
uint32_t buf[4];
uint32_t bits[2];
unsigned char in[64];
} mg_md5_ctx;
void mg_md5_init(mg_md5_ctx *c);
void mg_md5_update(mg_md5_ctx *c, const unsigned char *data, size_t len);
void mg_md5_final(mg_md5_ctx *c, unsigned char[16]);