source: rtems/cpukit/pppd/md5.h @ d0950ad

4.104.114.84.9
Last change on this file since d0950ad was d0950ad, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 30, 1999 at 10:12:50 PM

Added port of ppp-2.3.5 from Tomasz Domin <dot@…> of ComArch? SA.
Tomasz only tested this on the mpc823.

The official site for the original source for this PPP implementation is:

ftp://cs.anu.edu.au/pub/software/ppp

NOTE: As of 11/30/1999, the current version of this source is 2.3.10.

  • Property mode set to 100644
File size: 2.9 KB
Line 
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 **   -- G modified to have y&~z instead of y&z                       **
9 **   -- FF, GG, HH modified to add in last register done             **
10 **   -- Access pattern: round 2 works mod 5, round 3 works mod 3     **
11 **   -- distinct additive constant for each step                     **
12 **   -- round 4 added, working mod 7                                 **
13 ***********************************************************************
14 */
15
16/*
17 ***********************************************************************
18 ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved.  **
19 **                                                                   **
20 ** License to copy and use this software is granted provided that    **
21 ** it is identified as the "RSA Data Security, Inc. MD5 Message-     **
22 ** Digest Algorithm" in all material mentioning or referencing this  **
23 ** software or this function.                                        **
24 **                                                                   **
25 ** License is also granted to make and use derivative works          **
26 ** provided that such works are identified as "derived from the RSA  **
27 ** Data Security, Inc. MD5 Message-Digest Algorithm" in all          **
28 ** material mentioning or referencing the derived work.              **
29 **                                                                   **
30 ** RSA Data Security, Inc. makes no representations concerning       **
31 ** either the merchantability of this software or the suitability    **
32 ** of this software for any particular purpose.  It is provided "as  **
33 ** is" without express or implied warranty of any kind.              **
34 **                                                                   **
35 ** These notices must be retained in any copies of any part of this  **
36 ** documentation and/or software.                                    **
37 ***********************************************************************
38 */
39
40#ifndef __MD5_INCLUDE__
41
42/* typedef a 32-bit type */
43typedef unsigned int UINT4;
44
45/* Data structure for MD5 (Message-Digest) computation */
46typedef struct {
47  UINT4 i[2];                   /* number of _bits_ handled mod 2^64 */
48  UINT4 buf[4];                                    /* scratch buffer */
49  unsigned char in[64];                              /* input buffer */
50  unsigned char digest[16];     /* actual digest after MD5Final call */
51} MD5_CTX;
52
53void MD5Init ();
54void MD5Update ();
55void MD5Final ();
56
57#define __MD5_INCLUDE__
58#endif /* __MD5_INCLUDE__ */
Note: See TracBrowser for help on using the repository browser.