md5.h

Go to the documentation of this file.
00001 
00002 /*  $Id: md5.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* RSAGLOBAL.H - RSAREF types and constants
00005  */
00006 
00007 /* PROTOTYPES should be set to one if and only if the compiler supports function argument prototyping.
00008   The following makes PROTOTYPES default to 0 if it has not already
00009   been defined with C compiler flags.
00010  */
00011 #ifndef PROTOTYPES
00012 #define PROTOTYPES 1
00013 #endif
00014 
00015 /* POINTER defines a generic pointer type */
00016 typedef unsigned char *POINTER;
00017 
00018 /* UINT2 defines a two byte word */
00019 typedef unsigned short int UINT2;
00020 
00021 /* UINT4 defines a four byte word */
00022 typedef unsigned long int UINT4;
00023 
00024 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
00025   If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
00026   returns an empty list.
00027  */
00028 #if PROTOTYPES
00029 #define PROTO_LIST(list) list
00030 #else
00031 #define PROTO_LIST(list) ()
00032 #endif
00033 
00034 /* MD5.H - header file for MD5C.C
00035  */
00036 
00037 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
00038 rights reserved.
00039 
00040 License to copy and use this software is granted provided that it
00041 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
00042 Algorithm" in all material mentioning or referencing this software
00043 or this function.
00044 
00045 License is also granted to make and use derivative works provided
00046 that such works are identified as "derived from the RSA Data
00047 Security, Inc. MD5 Message-Digest Algorithm" in all material
00048 mentioning or referencing the derived work.
00049 
00050 RSA Data Security, Inc. makes no representations concerning either
00051 the merchantability of this software or the suitability of this
00052 software for any particular purpose. It is provided "as is"
00053 without express or implied warranty of any kind.
00054 These notices must be retained in any copies of any part of this
00055 documentation and/or software.
00056  */
00057 
00058 /* MD5 context. */
00059 typedef struct {
00060   UINT4 state[4];                                   /* state (ABCD) */
00061   UINT4 count[2];        /* number of bits, modulo 2^64 (lsb first) */
00062   unsigned char buffer[64];                         /* input buffer */
00063 } MD5_CTX;
00064 
00065 void MD5Init PROTO_LIST ((MD5_CTX *));
00066 void MD5Update PROTO_LIST ((MD5_CTX *, unsigned char *, unsigned int));
00067 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));

Generated on Wed May 31 18:19:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6