]> git.cryptolib.org Git - avr-crypto-lib.git/blob - md5.h
24fb6d543a1df319526d06a54e5078e7b49b7aff
[avr-crypto-lib.git] / md5.h
1 /* 
2  * File:        md5.h
3  * Author:      Daniel Otte
4  * Date:        31.07.2006
5  * License: GPL
6  * Description: Implementation of the MD5 hash algorithm as described in RFC 1321
7  * 
8  */
9
10
11 #ifndef MD5_H_
12 #define MD5_H_
13
14 #include <stdint.h>
15
16 typedef struct md5_ctx_st {
17         uint32_t a[4];
18         uint32_t counter;
19 } md5_ctx_t;
20
21  
22 void md5_init(md5_ctx_t *s);
23 void md5_nextBlock(md5_ctx_t *state, void* block);
24 void md5_lastBlock(md5_ctx_t *state, void* block, uint16_t length);
25
26 #endif /*MD5_H_*/