|
UFO: Alien Invasion
|
An implementation of MD5. More...

Go to the source code of this file.
Data Structures | |
| struct | MD5_CTX |
Macros | |
| #define | byteReverse(buf, len) |
| #define | F1(x, y, z) |
| #define | F2(x, y, z) |
| #define | F3(x, y, z) |
| #define | F4(x, y, z) |
| #define | MD5STEP(f, w, x, y, z, data, s) |
Functions | |
| static void | MD5Init (struct MD5Context *ctx) |
| Start MD5 accumulation. Set bit count to 0 and buffer to mysterious initialization constants. | |
| static void | MD5Transform (uint32_t buf[4], uint32_t const in[16]) |
| The core of the MD5 algorithm, this alters an existing MD5 hash to reflect the addition of 16 longwords of new data. MD5Update blocks the data and converts bytes into longwords for this routine. | |
| static void | MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len) |
| Update context to reflect the concatenation of another buffer full of bytes. | |
| static void | MD5Final (struct MD5Context *ctx, unsigned char *digest) |
| Final wrapup - pad to 64-byte boundary with the bit pattern 1 0* (64-bit count of bits processed, MSB-first). | |
| const char * | Com_MD5File (const char *fn, int length) |
| Compute the md5sum of a given file. | |
| const char * | Com_MD5Buffer (const byte *buf, size_t len) |
| Compute the md5sum of the given buffer. | |
An implementation of MD5.
Definition in file md5.cpp.
Definition at line 33 of file md5.cpp.
Referenced by MD5Final(), and MD5Update().
| #define F1 | ( | x, | |
| y, | |||
| z ) |
| #define F2 | ( | x, | |
| y, | |||
| z ) |
| #define F3 | ( | x, | |
| y, | |||
| z ) |
| #define F4 | ( | x, | |
| y, | |||
| z ) |
| const char * Com_MD5Buffer | ( | const byte * | buf, |
| size_t | len ) |
Compute the md5sum of the given buffer.
Definition at line 300 of file md5.cpp.
References i, len, MD5Final(), MD5Init(), MD5Update(), and Q_strcat().
Referenced by TEST_F().
| const char * Com_MD5File | ( | const char * | fn, |
| int | length ) |
Compute the md5sum of a given file.
| [in] | fn | Filename to compute the md5 of |
| [in] | length | Compute the md5 of the first 'length' bytes (if 0 - complete file) |
Definition at line 257 of file md5.cpp.
References f, FILE_READ, FS_OpenFile(), FS_Read(), i, length, MD5Final(), MD5Init(), MD5Update(), and Q_strcat().
Referenced by TEST_F().
|
static |
Final wrapup - pad to 64-byte boundary with the bit pattern 1 0* (64-bit count of bits processed, MSB-first).
Definition at line 211 of file md5.cpp.
References byteReverse, count, MD5Transform(), and OBJZERO.
Referenced by Com_MD5Buffer(), and Com_MD5File().
|
static |
Start MD5 accumulation. Set bit count to 0 and buffer to mysterious initialization constants.
Definition at line 52 of file md5.cpp.
Referenced by Com_MD5Buffer(), and Com_MD5File().
|
static |
The core of the MD5 algorithm, this alters an existing MD5 hash to reflect the addition of 16 longwords of new data. MD5Update blocks the data and converts bytes into longwords for this routine.
Definition at line 79 of file md5.cpp.
References F1, F2, F3, F4, and MD5STEP.
Referenced by MD5Final(), and MD5Update().
|
static |
Update context to reflect the concatenation of another buffer full of bytes.
Definition at line 165 of file md5.cpp.
References byteReverse, len, and MD5Transform().
Referenced by Com_MD5Buffer(), and Com_MD5File().