2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: md5.h /main/1 1995/11/03 10:29:17 rswiston $ */
25 * COMPONENT_NAME: desktop
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
36 * (C) COPYRIGHT International Business Machines Corp. 1995
38 * US Government Users Restricted Rights - Use, duplication or
39 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
45 * $Revision: /main/1 $
47 * RESTRICTED CONFIDENTIAL INFORMATION:
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
57 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
62 #ifndef I_HAVE_NO_IDENT
65 /* MD5.H - header file for MD5C.C
68 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
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
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.
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.
92 #include "md5global.h"
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 */
105 void MD5Init(MD5_CTX *);
106 void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
107 void MD5Final(unsigned char *, MD5_CTX *);