1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>mailfilter: md5.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>md5.h</h1><a href="md5_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* MD5.H - header file for MD5C.C</span>
00002 <span class="comment"> */</span>
00003
00004 <span class="comment">/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All</span>
00005 <span class="comment">rights reserved.</span>
00006 <span class="comment"></span>
00007 <span class="comment">License to copy and use this software is granted provided that it</span>
00008 <span class="comment">is identified as the "RSA Data Security, Inc. MD5 Message-Digest</span>
00009 <span class="comment">Algorithm" in all material mentioning or referencing this software</span>
00010 <span class="comment">or this function.</span>
00011 <span class="comment"></span>
00012 <span class="comment">License is also granted to make and use derivative works provided</span>
00013 <span class="comment">that such works are identified as "derived from the RSA Data</span>
00014 <span class="comment">Security, Inc. MD5 Message-Digest Algorithm" in all material</span>
00015 <span class="comment">mentioning or referencing the derived work.</span>
00016 <span class="comment"></span>
00017 <span class="comment">RSA Data Security, Inc. makes no representations concerning either</span>
00018 <span class="comment">the merchantability of this software or the suitability of this</span>
00019 <span class="comment">software for any particular purpose. It is provided "as is"</span>
00020 <span class="comment">without express or implied warranty of any kind.</span>
00021 <span class="comment"></span>
00022 <span class="comment">These notices must be retained in any copies of any part of this</span>
00023 <span class="comment">documentation and/or software.</span>
00024 <span class="comment"> */</span>
00025
00026 <span class="preprocessor">#ifndef MD5_H</span>
<a name="l00027"></a><a class="code" href="md5_8h.html#a0">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define MD5_H 1</span>
00028 <span class="preprocessor"></span>
00029 <span class="preprocessor">#include <sys/types.h></span>
00030 <span class="preprocessor">#include <inttypes.h></span>
00031
00032 <span class="comment">/* POINTER defines a generic pointer type */</span>
<a name="l00033"></a><a class="code" href="md5_8h.html#a1">00033</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="md5_8h.html#a1">POINTER</a>;
00034
00035 <span class="preprocessor">#ifndef HAVE_UINT32_T</span>
00036 <span class="preprocessor"></span><span class="preprocessor"># if SIZEOF_INT == 4</span>
00037 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32_t;
00038 <span class="preprocessor"># elif SIZEOF_LONG == 4</span>
00039 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> uint32_t;
00040 <span class="preprocessor"># endif</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00042 <span class="preprocessor"></span>
00043 <span class="comment">/* MD5 context. */</span>
<a name="l00044"></a><a class="code" href="structMD5__CTX.html">00044</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00045"></a><a class="code" href="structMD5__CTX.html#o0">00045</a> uint32_t state[4]; <span class="comment">/* state (ABCD) */</span>
<a name="l00046"></a><a class="code" href="structMD5__CTX.html#o1">00046</a> uint32_t count[2]; <span class="comment">/* number of bits, modulo 2^64 (lsb first) */</span>
<a name="l00047"></a><a class="code" href="structMD5__CTX.html#o2">00047</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> buffer[64]; <span class="comment">/* input buffer */</span>
00048 } <a class="code" href="structMD5__CTX.html">MD5_CTX</a>;
00049
00050 <span class="keywordtype">void</span> <a class="code" href="md5_8h.html#a2">MD5Init</a> (<a class="code" href="structMD5__CTX.html">MD5_CTX</a> *);
00051 <span class="keywordtype">void</span> <a class="code" href="md5_8h.html#a3">MD5Update</a> (<a class="code" href="structMD5__CTX.html">MD5_CTX</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
00052 <span class="keywordtype">void</span> <a class="code" href="md5_8h.html#a4">MD5Final</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> [16], <a class="code" href="structMD5__CTX.html">MD5_CTX</a> *);
00053
00054 <span class="comment">/* added to define the conversion wrapper */</span>
00055 <span class="keywordtype">void</span> <a class="code" href="md5_8h.html#a5">gethash</a> (<span class="keywordtype">char</span> [33], <span class="keywordtype">char</span> *, <span class="keywordtype">char</span> *);
00056
00057 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 8 15:22:26 2004 for mailfilter by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|