2009-12-13 16:03:46 +00:00
|
|
|
#ifndef MDFOUR_H
|
|
|
|
#define MDFOUR_H
|
|
|
|
|
2010-02-22 21:58:41 +00:00
|
|
|
#include <stddef.h>
|
2009-12-13 16:03:46 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
2002-03-26 14:46:43 +00:00
|
|
|
struct mdfour {
|
2009-12-13 16:03:46 +00:00
|
|
|
uint32_t A, B, C, D;
|
2010-02-22 21:58:41 +00:00
|
|
|
size_t totalN;
|
2002-04-29 09:12:46 +00:00
|
|
|
unsigned char tail[64];
|
2010-02-22 21:58:41 +00:00
|
|
|
size_t tail_len;
|
2002-03-26 14:46:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void mdfour_begin(struct mdfour *md);
|
2010-02-22 21:58:41 +00:00
|
|
|
void mdfour_update(struct mdfour *md, const unsigned char *in, size_t n);
|
2002-03-26 14:46:43 +00:00
|
|
|
void mdfour_result(struct mdfour *md, unsigned char *out);
|
2009-12-13 16:03:46 +00:00
|
|
|
|
|
|
|
#endif
|