Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / md5.h
1 /* $XConsortium: md5.h /main/1 1995/11/03 10:29:17 rswiston $ */
2 /*
3  *   COMPONENT_NAME: desktop
4  *
5  *   FUNCTIONS: none
6  *
7  *   ORIGINS: 119
8  *
9  *   This module contains IBM CONFIDENTIAL code. -- (IBM
10  *   Confidential Restricted when combined with the aggregated
11  *   modules for this product)
12  *   OBJECT CODE ONLY SOURCE MATERIALS
13  *
14  *   (C) COPYRIGHT International Business Machines Corp. 1995
15  *   All Rights Reserved
16  *   US Government Users Restricted Rights - Use, duplication or
17  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
18  */
19 /*
20  *+SNOTICE
21  *
22  *
23  *      $Revision: /main/1 $
24  *
25  *      RESTRICTED CONFIDENTIAL INFORMATION:
26  *      
27  *      The information in this document is subject to special
28  *      restrictions in a confidential disclosure agreement bertween
29  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
30  *      document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
31  *      Sun's specific written approval.  This documment and all copies
32  *      and derivative works thereof must be returned or destroyed at
33  *      Sun's request.
34  *
35  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
36  *
37  *+ENOTICE
38  */
39
40 #ifndef I_HAVE_NO_IDENT
41 #endif
42
43 /* MD5.H - header file for MD5C.C
44  */
45
46 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
47    rights reserved.
48    
49    License to copy and use this software is granted provided that it
50    is identified as the "RSA Data Security, Inc. MD5 Message-Digest
51    Algorithm" in all material mentioning or referencing this software
52    or this function.
53    
54    License is also granted to make and use derivative works provided
55    that such works are identified as "derived from the RSA Data
56    Security, Inc. MD5 Message-Digest Algorithm" in all material
57    mentioning or referencing the derived work.
58    
59    RSA Data Security, Inc. makes no representations concerning either
60    the merchantability of this software or the suitability of this
61    software for any particular purpose. It is provided "as is"
62    without express or implied warranty of any kind.
63    These notices must be retained in any copies of any part of this
64    documentation and/or software.
65    */
66
67 #ifndef _MD5_H
68 #define _MD5_H
69
70 #include "md5global.h"
71
72 /* MD5 context. */
73 typedef struct {
74     UINT4 state[4];                                   /* state (ABCD) */
75     UINT4 count[2];        /* number of bits, modulo 2^64 (lsb first) */
76     unsigned char buffer[64];                         /* input buffer */
77 } MD5_CTX;
78
79 #ifdef __cplusplus
80 extern "C" {
81 #endif
82     
83     void MD5Init(MD5_CTX *);
84     void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
85     void MD5Final(unsigned char *, MD5_CTX *);
86     
87 #ifdef __cplusplus
88 }
89 #endif
90
91 #endif