ccache/mdfour.h

19 lines
358 B
C
Raw Normal View History

#ifndef MDFOUR_H
#define MDFOUR_H
#include <stddef.h>
#include <inttypes.h>
2002-03-26 14:46:43 +00:00
struct mdfour {
uint32_t A, B, C, D;
size_t totalN;
unsigned char tail[64];
size_t tail_len;
2002-03-26 14:46:43 +00:00
};
void mdfour_begin(struct mdfour *md);
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);
#endif