File: md5_8h-source.html

package info (click to toggle)
mailfilter 0.8.2-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,956 kB
  • sloc: cpp: 2,459; ansic: 1,259; sh: 1,134; lex: 566; yacc: 463; makefile: 221; perl: 72
file content (84 lines) | stat: -rw-r--r-- 7,788 bytes parent folder | download | duplicates (2)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>mailfilter: md5.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>md5.h</h1><a href="md5_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* MD5.H - header file for MD5C.C</span>
<a name="l00002"></a>00002 <span class="comment"> */</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All</span>
<a name="l00005"></a>00005 <span class="comment">rights reserved.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">License to copy and use this software is granted provided that it</span>
<a name="l00008"></a>00008 <span class="comment">is identified as the "RSA Data Security, Inc. MD5 Message-Digest</span>
<a name="l00009"></a>00009 <span class="comment">Algorithm" in all material mentioning or referencing this software</span>
<a name="l00010"></a>00010 <span class="comment">or this function.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">License is also granted to make and use derivative works provided</span>
<a name="l00013"></a>00013 <span class="comment">that such works are identified as "derived from the RSA Data</span>
<a name="l00014"></a>00014 <span class="comment">Security, Inc. MD5 Message-Digest Algorithm" in all material</span>
<a name="l00015"></a>00015 <span class="comment">mentioning or referencing the derived work.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">RSA Data Security, Inc. makes no representations concerning either</span>
<a name="l00018"></a>00018 <span class="comment">the merchantability of this software or the suitability of this</span>
<a name="l00019"></a>00019 <span class="comment">software for any particular purpose. It is provided "as is"</span>
<a name="l00020"></a>00020 <span class="comment">without express or implied warranty of any kind.</span>
<a name="l00021"></a>00021 <span class="comment"></span>
<a name="l00022"></a>00022 <span class="comment">These notices must be retained in any copies of any part of this</span>
<a name="l00023"></a>00023 <span class="comment">documentation and/or software.</span>
<a name="l00024"></a>00024 <span class="comment"> */</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef MD5_H</span>
<a name="l00027"></a><a class="code" href="md5_8h.html#32f23738d479a443607b7124f70c465c">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define MD5_H 1</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;inttypes.h&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/* POINTER defines a generic pointer type */</span>
<a name="l00033"></a><a class="code" href="md5_8h.html#73204e40637f83518fb695362ea084a4">00033</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="md5_8h.html#73204e40637f83518fb695362ea084a4">POINTER</a>;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef HAVE_UINT32_T</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#  if SIZEOF_INT == 4</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32_t;
<a name="l00038"></a>00038 <span class="preprocessor">#  elif SIZEOF_LONG == 4</span>
<a name="l00039"></a>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;
<a name="l00040"></a>00040 <span class="preprocessor">#  endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>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#7c74e43c2762f66bf81f0075bff2dba2">00045</a>   uint32_t state[4];                                   <span class="comment">/* state (ABCD) */</span>
<a name="l00046"></a><a class="code" href="structMD5__CTX.html#652deaea6cce73f3adf6b2212240c351">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#2da73ecf544745f58211e998719f367f">00047</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> buffer[64];                         <span class="comment">/* input buffer */</span>
<a name="l00048"></a>00048 } <a class="code" href="structMD5__CTX.html">MD5_CTX</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="md5c_8c.html#08e47999152d737f33fda2b8729c4f7c">MD5Init</a> (<a class="code" href="structMD5__CTX.html">MD5_CTX</a> *);
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="md5c_8c.html#a5b3e14ee3b69e0c7e10d69c9e538b3e">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>);
<a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="md5c_8c.html#6265921688d4d2f4fb2456dfe7a2828a">MD5Final</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> [16], <a class="code" href="structMD5__CTX.html">MD5_CTX</a> *);
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="comment">/* added to define the conversion wrapper */</span>
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="md5_8h.html#7d2e74be253746111f6c5fe55aecb677">gethash</a> (<span class="keywordtype">char</span> [33], <span class="keywordtype">char</span> *, <span class="keywordtype">char</span> *);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 16:13:12 2009 for mailfilter by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>