mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-13 16:09:00 +08:00
14 lines
306 B
C
14 lines
306 B
C
|
#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 *);
|