📄 md5_8h-source.html
字号:
<!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>ace-radius: RADIUS/md5.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.7-20040704 --><div class="qindex"><a class="qindex" href="main.html">Main Page</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="functions.html">Class Members</a></div><h1>RADIUS/md5.h</h1><pre class="fragment"><div>00001 <span class="preprocessor">#ifndef __MD5_H_</span>00002 <span class="preprocessor"></span><span class="preprocessor">#define __MD5_H_</span>00003 <span class="preprocessor"></span>00004 <span class="comment">/*</span>00005 <span class="comment"> * This code implements the MD5 message-digest algorithm.</span>00006 <span class="comment"> * The algorithm is due to Ron Rivest. This code was</span>00007 <span class="comment"> * written by Colin Plumb in 1993, no copyright is claimed.</span>00008 <span class="comment"> * This code is in the public domain; do with it what you wish.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * Equivalent code is available from RSA Data Security, Inc.</span>00011 <span class="comment"> * This code has been tested against that, and is equivalent,</span>00012 <span class="comment"> * except that you don't need to include two pages of legalese</span>00013 <span class="comment"> * with every copy.</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * To compute the message digest of a chunk of bytes, declare an</span>00016 <span class="comment"> * MD5Context structure, pass it to MD5Init, call MD5Update as</span>00017 <span class="comment"> * needed on buffers full of bytes, and then call MD5Final, which</span>00018 <span class="comment"> * will fill a supplied 16-byte array with the digest.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * Brutally hacked to use ACE-defined types in order to make</span>00021 <span class="comment"> * this code platform-independent.</span>00022 <span class="comment"> * </span>00023 <span class="comment"> */</span>00024 00025 <span class="preprocessor">#include "ace/Basic_Types.h"</span>00026 00027 00028 <span class="keyword">typedef</span> <span class="keyword">struct </span>MD5Context 00029 {00030 ACE_UINT32 buf[4];00031 ACE_UINT32 bits[2];00032 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> in[64];00033 } MD5_CTX;00034 00035 <span class="keyword">extern</span> <span class="keywordtype">void</span> MD5Init(<span class="keyword">struct</span> MD5Context * ctx);00036 <span class="keyword">extern</span> <span class="keywordtype">void</span> MD5Update(<span class="keyword">struct</span> MD5Context *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, ACE_UINT32 len);00037 <span class="keyword">extern</span> <span class="keywordtype">void</span> MD5Final(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> digest[16], <span class="keyword">struct</span> MD5Context *ctx);00038 <span class="keyword">extern</span> <span class="keywordtype">void</span> MD5Transform(ACE_UINT32 buf[4], ACE_UINT32 in[16]);00039 00040 <span class="keyword">extern</span> <span class="keywordtype">void</span> MD5Calc(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *output,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, ACE_UINT32 len);00041 00042 <span class="preprocessor">#endif </span><span class="comment">/* !__MD5_H_ */</span></div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 30 11:00:57 2005 for ace-radius by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7-20040704 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -