mongoose/src/sha1.h

14 lines
306 B
C
Raw Normal View History

2020-12-05 11:26:32 +00:00
#pragma once
#include "arch.h"
typedef struct {
uint32_t state[5];
uint32_t count[2];
unsigned char buffer[64];
} mg_sha1_ctx;
void mg_sha1_init(mg_sha1_ctx *);
void mg_sha1_update(mg_sha1_ctx *, const unsigned char *data, size_t len);
void mg_sha1_final(unsigned char digest[20], mg_sha1_ctx *);