]> git.ipfire.org Git - thirdparty/chrony.git/blame - md5.h
ntp: add server support for KoD RATE
[thirdparty/chrony.git] / md5.h
CommitLineData
88840341
RC
1/*
2 ***********************************************************************
3 ** md5.h -- header file for implementation of MD5 **
4 ** RSA Data Security, Inc. MD5 Message-Digest Algorithm **
5 ** Created: 2/17/90 RLR **
6 ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version **
7 ** Revised (for MD5): RLR 4/27/91 **
8 ***********************************************************************
9 */
10
11/*
12 ***********************************************************************
13 ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. **
14 ** **
15 ** License to copy and use this software is granted provided that **
16 ** it is identified as the "RSA Data Security, Inc. MD5 Message- **
17 ** Digest Algorithm" in all material mentioning or referencing this **
18 ** software or this function. **
19 ** **
20 ** License is also granted to make and use derivative works **
21 ** provided that such works are identified as "derived from the RSA **
22 ** Data Security, Inc. MD5 Message-Digest Algorithm" in all **
23 ** material mentioning or referencing the derived work. **
24 ** **
25 ** RSA Data Security, Inc. makes no representations concerning **
26 ** either the merchantability of this software or the suitability **
27 ** of this software for any particular purpose. It is provided "as **
28 ** is" without express or implied warranty of any kind. **
29 ** **
30 ** These notices must be retained in any copies of any part of this **
31 ** documentation and/or software. **
32 ***********************************************************************
33 */
34
6ca73bf6 35#include "sysincl.h"
88840341
RC
36
37/* typedef a 32-bit type */
38typedef uint32_t UINT4;
39
40/* Data structure for MD5 (Message-Digest) computation */
41typedef struct {
42 UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
43 UINT4 buf[4]; /* scratch buffer */
44 unsigned char in[64]; /* input buffer */
45 unsigned char digest[16]; /* actual digest after MD5Final call */
46} MD5_CTX;
47
48void MD5Init (MD5_CTX *mdContext);
49void MD5Update (MD5_CTX *, unsigned const char *, unsigned int);
50void MD5Final (MD5_CTX *);
51
52/*
53 ***********************************************************************
54 ** End of md5.h **
55 ******************************** (cut) ********************************
56 */