X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=md5.h;h=24fb6d543a1df319526d06a54e5078e7b49b7aff;hb=8537c7a0647b533f078af9c35bce533335c7556e;hp=bd91f23080e6d7392f1fad64fc64328f001c1afa;hpb=3c995d0a8faeb9d37927d48e20fc45d839e066ea;p=avr-crypto-lib.git diff --git a/md5.h b/md5.h index bd91f23..24fb6d5 100644 --- a/md5.h +++ b/md5.h @@ -11,4 +11,16 @@ #ifndef MD5_H_ #define MD5_H_ +#include + +typedef struct md5_ctx_st { + uint32_t a[4]; + uint32_t counter; +} md5_ctx_t; + + +void md5_init(md5_ctx_t *s); +void md5_nextBlock(md5_ctx_t *state, void* block); +void md5_lastBlock(md5_ctx_t *state, void* block, uint16_t length); + #endif /*MD5_H_*/