GADGET-4
Md5.h
Go to the documentation of this file.
1
7
/*
8
**********************************************************************
9
** md5.h -- Header file for implementation of MD5 **
10
** RSA Data Security, Inc. MD5 Message Digest Algorithm **
11
** Created: 2/17/90 RLR **
12
** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version **
13
** Revised (for MD5): RLR 4/27/91 **
14
** -- G modified to have y&~z instead of y&z **
15
** -- FF, GG, HH modified to add in last register done **
16
** -- Access pattern: round 2 works mod 5, round 3 works mod 3 **
17
** -- distinct additive constant for each step **
18
** -- round 4 added, working mod 7 **
19
**********************************************************************
20
*/
21
22
/*
23
**********************************************************************
24
** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. **
25
** **
26
** License to copy and use this software is granted provided that **
27
** it is identified as the "RSA Data Security, Inc. MD5 Message **
28
** Digest Algorithm" in all material mentioning or referencing this **
29
** software or this function. **
30
** **
31
** License is also granted to make and use derivative works **
32
** provided that such works are identified as "derived from the RSA **
33
** Data Security, Inc. MD5 Message Digest Algorithm" in all **
34
** material mentioning or referencing the derived work. **
35
** **
36
** RSA Data Security, Inc. makes no representations concerning **
37
** either the merchantability of this software or the suitability **
38
** of this software for any particular purpose. It is provided "as **
39
** is" without express or implied warranty of any kind. **
40
** **
41
** These notices must be retained in any copies of any part of this **
42
** documentation and/or software. **
43
**********************************************************************
44
*/
45
46
/* typedef a 32 bit type */
47
typedef
unsigned
long
int
UINT4
;
48
49
/* Data structure for MD5 (Message Digest) computation */
50
struct
MD5_CTX
51
{
52
UINT4
i
[2];
/* number of _bits_ handled mod 2^64 */
53
UINT4
buf
[4];
/* scratch buffer */
54
unsigned
char
in
[64];
/* input buffer */
55
unsigned
char
digest
[16];
/* actual digest after MD5Final call */
56
};
57
58
void
MD5Final
(
MD5_CTX
*mdContext);
59
// void MD5Update(MD5_CTX * mdContext, unsigned char *inBuf, unsigned int inLen);
60
void
MD5UpdateLong
(
MD5_CTX
*mdContext,
unsigned
char
*inBuf,
unsigned
long
long
inLenLong);
61
void
MD5Init
(
MD5_CTX
*mdContext);
62
63
/*
64
**********************************************************************
65
** End of md5.h **
66
******************************* (cut) ********************************
67
*/
MD5UpdateLong
void MD5UpdateLong(MD5_CTX *mdContext, unsigned char *inBuf, unsigned long long inLenLong)
MD5Init
void MD5Init(MD5_CTX *mdContext)
UINT4
unsigned long int UINT4
Definition:
Md5.h:47
MD5Final
void MD5Final(MD5_CTX *mdContext)
MD5_CTX
Definition:
Md5.h:51
MD5_CTX::in
unsigned char in[64]
Definition:
Md5.h:54
MD5_CTX::buf
UINT4 buf[4]
Definition:
Md5.h:53
MD5_CTX::digest
unsigned char digest[16]
Definition:
Md5.h:55
MD5_CTX::i
UINT4 i[2]
Definition:
Md5.h:52
src
debug_md5
Md5.h
Generated by
1.9.2