This commit is contained in:
twinaphex
2014-03-30 22:15:17 +02:00
commit 7e6caac57d
370 changed files with 90364 additions and 0 deletions

17
src/md5.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _MD5_H
#define _MD5_H
struct md5_context {
uint32 total[2];
uint32 state[4];
uint8 buffer[64];
};
void md5_starts(struct md5_context *ctx);
void md5_update(struct md5_context *ctx, uint8 *input, uint32 length);
void md5_finish(struct md5_context *ctx, uint8 digest[16]);
/* Uses a static buffer, so beware of how it's used. */
char *md5_asciistr(uint8 digest[16]);
#endif /* md5.h */