⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md5mac_8h-source.html

📁 Crypto++是一个非常强大的密码学库,主要是功能全
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Crypto++: md5mac.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.2 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><h1>md5mac.h</h1><a href="md5mac_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef CRYPTOPP_MD5MAC_H</span>00002 <span class="preprocessor"></span><span class="preprocessor">#define CRYPTOPP_MD5MAC_H</span>00003 <span class="preprocessor"></span><span class="comment"></span>00004 <span class="comment">/** \file</span>00005 <span class="comment">*/</span>00006 00007 <span class="preprocessor">#include "seckey.h"</span>00008 <span class="preprocessor">#include "iterhash.h"</span>00009 00010 NAMESPACE_BEGIN(CryptoPP)00011 00012 <span class="comment">//! .</span><a name="l00013"></a><a class="code" href="class_m_d5_m_a_c___base.html">00013</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_m_d5_m_a_c___base.html">MD5MAC_Base</a> : <span class="keyword">public</span> <a class="code" href="class_fixed_key_length.html">FixedKeyLength</a>&lt;16&gt;, <span class="keyword">public</span> <a class="code" href="class_iterated_hash.html">IteratedHash</a>&lt;word32, LittleEndian, 64, MessageAuthenticationCode&gt;00014 {00015 <span class="keyword">public</span>:00016         <span class="keyword">static</span> std::string StaticAlgorithmName() {<span class="keywordflow">return</span> <span class="stringliteral">"MD5-MAC"</span>;}00017         <span class="keyword">enum</span> {DIGESTSIZE = 16};00018 00019         <a class="code" href="class_m_d5_m_a_c___base.html">MD5MAC_Base</a>() : <a class="code" href="class_iterated_hash.html">IteratedHash&lt;word32, LittleEndian, 64, MessageAuthenticationCode&gt;</a>(DIGESTSIZE) {}00020 00021         <span class="keywordtype">void</span> UncheckedSetKey(<span class="keyword">const</span> byte *userKey, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> keylength);00022         <span class="keywordtype">void</span> <a class="code" href="class_m_d5_m_a_c___base.html#_m_d5_m_a_c___basea2">TruncatedFinal</a>(byte *mac, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size);00023 00024 <span class="keyword">protected</span>:00025         <span class="keyword">static</span> <span class="keywordtype">void</span> Transform (word32 *buf, <span class="keyword">const</span> word32 *in, <span class="keyword">const</span> word32 *key);00026         <span class="keywordtype">void</span> vTransform(<span class="keyword">const</span> word32 *data) {Transform(m_digest, data, m_key+4);}00027         <span class="keywordtype">void</span> Init();00028 00029         <span class="keyword">static</span> <span class="keyword">const</span> word32 T[12];00030         FixedSizeSecBlock&lt;word32, 12&gt; m_key;00031 };00032 <span class="comment"></span>00033 <span class="comment">//! &lt;a href="http://www.weidai.com/scan-mirror/mac.html#MD5-MAC"&gt;MD5-MAC&lt;/a&gt;</span><a name="l00034"></a><a class="code" href="md5mac_8h.html#a0">00034</a> <span class="comment"></span><span class="keyword">typedef</span> <a class="code" href="class_message_authentication_code_final_template.html">MessageAuthenticationCodeFinalTemplate&lt;MD5MAC_Base&gt;</a> <a class="code" href="class_message_authentication_code_final_template.html">MD5MAC</a>;00035 00036 NAMESPACE_END00037 00038 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:34:19 2003 for Crypto++ by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -