Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
md5.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* MD5.H - header file for MD5C.C
20 */
21
22/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
23rights reserved.
24
25License to copy and use this software is granted provided that it
26is identified as the "RSA Data Security, Inc. MD5 Message-Digest
27Algorithm" in all material mentioning or referencing this software
28or this function.
29
30License is also granted to make and use derivative works provided
31that such works are identified as "derived from the RSA Data
32Security, Inc. MD5 Message-Digest Algorithm" in all material
33mentioning or referencing the derived work.
34
35RSA Data Security, Inc. makes no representations concerning either
36the merchantability of this software or the suitability of this
37software for any particular purpose. It is provided "as is"
38without express or implied warranty of any kind.
39
40These notices must be retained in any copies of any part of this
41documentation and/or software.
42 */
43
44#define MD 5
45
46#ifndef MD
47#define MD MD5
48#endif
49
50#define MD_CTX MD5_CTX
51#define MDInit MD5Init
52#define MDUpdate MD5Update
53#define MDFinal MD5Final
54
55
56/* MD5 context. */
57typedef struct {
58 UINT4 state[4]; /* state (ABCD) */
59 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
60 unsigned char buffer[64]; /* input buffer */
61} MD5_CTX;
62
65 ((MD5_CTX *, unsigned char *, unsigned int));
66void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
#define PROTO_LIST(list)
Definition global.h:48
unsigned long int UINT4
Definition global.h:39
void MD5Init(MD5_CTX *context)
Definition md5.cpp:121
void MD5Final(unsigned char digest[16], MD5_CTX *context)
Definition md5.cpp:176
void MD5Update(MD5_CTX *context, unsigned char *input, unsigned int inputLen)
Definition md5.cpp:136
Definition md5.h:57
unsigned char buffer[64]
Definition md5.h:60
UINT4 state[4]
Definition md5.h:58
UINT4 count[2]
Definition md5.h:59