dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / md5.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: md5.h /main/1 1995/11/03 10:29:17 rswiston $ */
24 /*
25  *   COMPONENT_NAME: desktop
26  *
27  *   FUNCTIONS: none
28  *
29  *   ORIGINS: 119
30  *
31  *   This module contains IBM CONFIDENTIAL code. -- (IBM
32  *   Confidential Restricted when combined with the aggregated
33  *   modules for this product)
34  *   OBJECT CODE ONLY SOURCE MATERIALS
35  *
36  *   (C) COPYRIGHT International Business Machines Corp. 1995
37  *   All Rights Reserved
38  *   US Government Users Restricted Rights - Use, duplication or
39  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
40  */
41 /*
42  *+SNOTICE
43  *
44  *
45  *      $Revision: /main/1 $
46  *
47  *      RESTRICTED CONFIDENTIAL INFORMATION:
48  *      
49  *      The information in this document is subject to special
50  *      restrictions in a confidential disclosure agreement bertween
51  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
52  *      document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
53  *      Sun's specific written approval.  This documment and all copies
54  *      and derivative works thereof must be returned or destroyed at
55  *      Sun's request.
56  *
57  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
58  *
59  *+ENOTICE
60  */
61
62 #ifndef I_HAVE_NO_IDENT
63 #endif
64
65 /* MD5.H - header file for MD5C.C
66  */
67
68 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
69    rights reserved.
70    
71    License to copy and use this software is granted provided that it
72    is identified as the "RSA Data Security, Inc. MD5 Message-Digest
73    Algorithm" in all material mentioning or referencing this software
74    or this function.
75    
76    License is also granted to make and use derivative works provided
77    that such works are identified as "derived from the RSA Data
78    Security, Inc. MD5 Message-Digest Algorithm" in all material
79    mentioning or referencing the derived work.
80    
81    RSA Data Security, Inc. makes no representations concerning either
82    the merchantability of this software or the suitability of this
83    software for any particular purpose. It is provided "as is"
84    without express or implied warranty of any kind.
85    These notices must be retained in any copies of any part of this
86    documentation and/or software.
87    */
88
89 #ifndef _MD5_H
90 #define _MD5_H
91
92 #include "md5global.h"
93
94 /* MD5 context. */
95 typedef struct {
96     UINT4 state[4];                                   /* state (ABCD) */
97     UINT4 count[2];        /* number of bits, modulo 2^64 (lsb first) */
98     unsigned char buffer[64];                         /* input buffer */
99 } MD5_CTX;
100
101 #ifdef __cplusplus
102 extern "C" {
103 #endif
104     
105     void MD5Init(MD5_CTX *);
106     void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
107     void MD5Final(unsigned char *, MD5_CTX *);
108     
109 #ifdef __cplusplus
110 }
111 #endif
112
113 #endif