summaryrefslogtreecommitdiff
path: root/utils/mkamsboot/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mkamsboot/md5.h')
-rw-r--r--utils/mkamsboot/md5.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/mkamsboot/md5.h b/utils/mkamsboot/md5.h
new file mode 100644
index 0000000000..71fa395548
--- /dev/null
+++ b/utils/mkamsboot/md5.h
@@ -0,0 +1,25 @@
1#ifndef _MD5_H
2#define _MD5_H
3
4#ifndef uint8
5#define uint8 unsigned char
6#endif
7
8#ifndef uint32
9#define uint32 unsigned long int
10#endif
11
12typedef struct
13{
14 uint32 total[2];
15 uint32 state[4];
16 uint8 buffer[64];
17}
18md5_context;
19
20void md5_starts( md5_context *ctx );
21void md5_update( md5_context *ctx, uint8 *input, uint32 length );
22void md5_finish( md5_context *ctx, uint8 digest[16] );
23
24#endif /* md5.h */
25