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
23
rights reserved.
24
25
License to copy and use this software is granted provided that it
26
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
27
Algorithm" in all material mentioning or referencing this software
28
or this function.
29
30
License is also granted to make and use derivative works provided
31
that such works are identified as "derived from the RSA Data
32
Security, Inc. MD5 Message-Digest Algorithm" in all material
33
mentioning or referencing the derived work.
34
35
RSA Data Security, Inc. makes no representations concerning either
36
the merchantability of this software or the suitability of this
37
software for any particular purpose. It is provided "as is"
38
without express or implied warranty of any kind.
39
40
These notices must be retained in any copies of any part of this
41
documentation 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. */
57
typedef
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
63
void
MD5Init
PROTO_LIST
((
MD5_CTX
*));
64
void
MD5Update
PROTO_LIST
65
((
MD5_CTX
*,
unsigned
char
*,
unsigned
int
));
66
void
MD5Final
PROTO_LIST
((
unsigned
char
[16],
MD5_CTX
*));
PROTO_LIST
#define PROTO_LIST(list)
Definition
global.h:48
UINT4
unsigned long int UINT4
Definition
global.h:39
MD5Init
void MD5Init(MD5_CTX *context)
Definition
md5.cpp:121
MD5Final
void MD5Final(unsigned char digest[16], MD5_CTX *context)
Definition
md5.cpp:176
MD5Update
void MD5Update(MD5_CTX *context, unsigned char *input, unsigned int inputLen)
Definition
md5.cpp:136
MD5_CTX
Definition
md5.h:57
MD5_CTX::buffer
unsigned char buffer[64]
Definition
md5.h:60
MD5_CTX::state
UINT4 state[4]
Definition
md5.h:58
MD5_CTX::count
UINT4 count[2]
Definition
md5.h:59
Code
Libraries
Source
WWVegas
WWLib
md5.h
Generated by
1.13.2