* round trip xml launch * roms load * removed debug * added binary data and changed rom format * changed hex format * fixed bug * added structure and start/length * removed base64 support * removed base64 support * fixed parsing bugs * fixed hex parse bug * fixed parser * fixing paths * fixed rbf parser * fixed initialization bug * fixed extension removal for when there are multiple extension options * fixed core path and cleaned up filelength * added md5 checks to arcade roms * fixed rbf search * added error support * Simplify error checking code * fixed arcade error message pop up * fixed bug in part zip initialization * removed dtdt * don't load second rom0 if first works * fixed directory problem * added more comments * added / to zip path * fixed / bug, truncate mame zip error message * fixed scrolling RBF * fixed scrolling name and error message * added code to remove _date in scrolling text * remove redundant /
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* See md5.c for explanation and copyright information. */
|
|
|
|
#ifndef MD5_H
|
|
#define MD5_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Unlike previous versions of this code, uint32 need not be exactly
|
|
32 bits, merely 32 bits or more. Choosing a data type which is 32
|
|
bits instead of 64 is not important; speed is considerably more
|
|
important. ANSI guarantees that "unsigned long" will be big enough,
|
|
and always using it seems to have few disadvantages. */
|
|
typedef unsigned long uint32;
|
|
|
|
struct MD5Context {
|
|
uint32 buf[4];
|
|
uint32 bits[2];
|
|
unsigned char in[64];
|
|
};
|
|
#ifndef PROTO
|
|
#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
|
|
#define PROTO(ARGS) ARGS
|
|
#else
|
|
#define PROTO(ARGS) ()
|
|
#endif
|
|
#endif
|
|
|
|
void MD5Init PROTO((struct MD5Context *context));
|
|
void MD5Update PROTO((struct MD5Context *context, unsigned char const *buf, unsigned len));
|
|
void MD5Final PROTO((unsigned char digest[16], struct MD5Context *context));
|
|
void MD5Transform PROTO((uint32 buf[4], const unsigned char in[64]));
|
|
|
|
/*
|
|
* This is needed to make RSAREF happy on some MS-DOS compilers.
|
|
*/
|
|
typedef struct MD5Context MD5_CTX;
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !MD5_H */
|