projects
/
project
/
procd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add state handler
[project/procd.git]
/
md5.h
1
#ifndef __PROCD_MD5_H
2
#define __PROCD_MD5_H
3
4
#include <stdint.h>
5
#include <stddef.h>
6
7
typedef
struct
md5_ctx
{
8
uint32_t
A
;
9
uint32_t
B
;
10
uint32_t
C
;
11
uint32_t
D
;
12
uint64_t
total
;
13
uint32_t
buflen
;
14
char
buffer
[
128
];
15
}
md5_ctx_t
;
16
17
void
md5_begin
(
md5_ctx_t
*
ctx
);
18
void
md5_hash
(
const void
*
data
,
size_t
length
,
md5_ctx_t
*
ctx
);
19
void
md5_end
(
void
*
resbuf
,
md5_ctx_t
*
ctx
);
20
21
#endif