mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
140c214ad0
Look for WORDS_LITTLEENDIAN instead of the gcc-specific __BYTE_ORDER. Use our existing "compiler.h" portability layer. Make functions which are not exported static. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
23 lines
541 B
C
23 lines
541 B
C
#ifndef MD5_H
|
|
#define MD5_H
|
|
|
|
#include "compiler.h"
|
|
#include <inttypes.h>
|
|
|
|
#define MD5_HASHBYTES 16
|
|
|
|
typedef struct MD5Context {
|
|
uint32_t buf[4];
|
|
uint32_t bits[2];
|
|
unsigned char in[64];
|
|
} MD5_CTX;
|
|
|
|
extern void MD5Init(MD5_CTX *context);
|
|
extern void MD5Update(MD5_CTX *context, unsigned char const *buf,
|
|
unsigned len);
|
|
extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
|
|
extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
|
|
extern char * MD5End(MD5_CTX *, char *);
|
|
|
|
#endif /* !MD5_H */
|