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

📄 des_8h-source.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="l00066"></a>00066         <span class="keyword">public</span>:<a name="l00067"></a>00067                 <span class="keywordtype">void</span> UncheckedSetKey(<span class="keyword">const</span> byte *userKey, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length, <span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> &amp;params);<a name="l00068"></a>00068                 <span class="keywordtype">void</span> ProcessAndXorBlock(<span class="keyword">const</span> byte *inBlock, <span class="keyword">const</span> byte *xorBlock, byte *outBlock) <span class="keyword">const</span>;<a name="l00069"></a>00069 <a name="l00070"></a>00070         <span class="keyword">protected</span>:<a name="l00071"></a>00071                 <a class="code" href="class_raw_d_e_s.html">RawDES</a> m_des1, m_des2;<a name="l00072"></a>00072         };<a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="keyword">public</span>:<a name="l00075"></a><a class="code" href="class_d_e_s___e_d_e2.html#922b68789558e6596af345cc975dc152">00075</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;ENCRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Encryption</a>;<a name="l00076"></a><a class="code" href="class_d_e_s___e_d_e2.html#1f53e6dfa94e7e0f9476e6aba759d53f">00076</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;DECRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Decryption</a>;<a name="l00077"></a>00077 };<a name="l00078"></a>00078 <span class="comment"></span><a name="l00079"></a>00079 <span class="comment">//! _</span><a name="l00080"></a><a class="code" href="struct_d_e_s___e_d_e3___info.html">00080</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="struct_d_e_s___e_d_e3___info.html" title="_">DES_EDE3_Info</a> : <span class="keyword">public</span> <a class="code" href="class_fixed_block_size.html" title="to be inherited by block ciphers with fixed block size">FixedBlockSize</a>&lt;8&gt;, <span class="keyword">public</span> <a class="code" href="class_fixed_key_length.html" title="to be inherited by keyed algorithms with fixed key length">FixedKeyLength</a>&lt;24&gt;<a name="l00081"></a>00081 {<a name="l00082"></a><a class="code" href="struct_d_e_s___e_d_e3___info.html#f59a37193aa826ccf1ece0f50bbe5ec0">00082</a>         CRYPTOPP_DLL <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * CRYPTOPP_API <a class="code" href="struct_d_e_s___e_d_e3___info.html#f59a37193aa826ccf1ece0f50bbe5ec0">StaticAlgorithmName</a>() {<span class="keywordflow">return</span> <span class="stringliteral">"DES-EDE3"</span>;}<a name="l00083"></a>00083 };<a name="l00084"></a>00084 <span class="comment"></span><a name="l00085"></a>00085 <span class="comment">/// &lt;a href="http://www.weidai.com/scan-mirror/cs.html#DESede"&gt;DES-EDE3&lt;/a&gt;</span><a name="l00086"></a><a class="code" href="class_d_e_s___e_d_e3.html">00086</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_d_e_s___e_d_e3.html" title="DES-EDE3">DES_EDE3</a> : <span class="keyword">public</span> <a class="code" href="struct_d_e_s___e_d_e3___info.html" title="_">DES_EDE3_Info</a>, <span class="keyword">public</span> <a class="code" href="struct_block_cipher_documentation.html" title="These objects usually should not be used directly. See CipherModeDocumentation instead...">BlockCipherDocumentation</a><a name="l00087"></a>00087 {<a name="l00088"></a>00088         <span class="keyword">class </span>CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base : <span class="keyword">public</span> <a class="code" href="class_block_cipher_impl.html">BlockCipherImpl</a>&lt;DES_EDE3_Info&gt;<a name="l00089"></a>00089         {<a name="l00090"></a>00090         <span class="keyword">public</span>:<a name="l00091"></a>00091                 <span class="keywordtype">void</span> UncheckedSetKey(<span class="keyword">const</span> byte *userKey, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length, <span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> &amp;params);<a name="l00092"></a>00092                 <span class="keywordtype">void</span> ProcessAndXorBlock(<span class="keyword">const</span> byte *inBlock, <span class="keyword">const</span> byte *xorBlock, byte *outBlock) <span class="keyword">const</span>;<a name="l00093"></a>00093 <a name="l00094"></a>00094         <span class="keyword">protected</span>:<a name="l00095"></a>00095                 <a class="code" href="class_raw_d_e_s.html">RawDES</a> m_des1, m_des2, m_des3;<a name="l00096"></a>00096         };<a name="l00097"></a>00097 <a name="l00098"></a>00098 <span class="keyword">public</span>:<a name="l00099"></a><a class="code" href="class_d_e_s___e_d_e3.html#f49c33eb7f3fa0bb1402a68584af10dd">00099</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;ENCRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Encryption</a>;<a name="l00100"></a><a class="code" href="class_d_e_s___e_d_e3.html#86f667385b1ee50d945aa1cb6a05a369">00100</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;DECRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Decryption</a>;<a name="l00101"></a>00101 };<a name="l00102"></a>00102 <span class="comment"></span><a name="l00103"></a>00103 <span class="comment">//! _</span><a name="l00104"></a><a class="code" href="struct_d_e_s___x_e_x3___info.html">00104</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="struct_d_e_s___x_e_x3___info.html" title="_">DES_XEX3_Info</a> : <span class="keyword">public</span> <a class="code" href="class_fixed_block_size.html" title="to be inherited by block ciphers with fixed block size">FixedBlockSize</a>&lt;8&gt;, <span class="keyword">public</span> <a class="code" href="class_fixed_key_length.html" title="to be inherited by keyed algorithms with fixed key length">FixedKeyLength</a>&lt;24&gt;<a name="l00105"></a>00105 {<a name="l00106"></a><a class="code" href="struct_d_e_s___x_e_x3___info.html#53fec89e18d59da1c8eb33229b164c51">00106</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="struct_d_e_s___x_e_x3___info.html#53fec89e18d59da1c8eb33229b164c51">StaticAlgorithmName</a>() {<span class="keywordflow">return</span> <span class="stringliteral">"DES-XEX3"</span>;}<a name="l00107"></a>00107 };<a name="l00108"></a>00108 <span class="comment"></span><a name="l00109"></a>00109 <span class="comment">/// &lt;a href="http://www.weidai.com/scan-mirror/cs.html#DESX"&gt;DES-XEX3&lt;/a&gt;, AKA DESX</span><a name="l00110"></a><a class="code" href="class_d_e_s___x_e_x3.html">00110</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_d_e_s___x_e_x3.html" title="DES-XEX3, AKA DESX">DES_XEX3</a> : <span class="keyword">public</span> <a class="code" href="struct_d_e_s___x_e_x3___info.html" title="_">DES_XEX3_Info</a>, <span class="keyword">public</span> <a class="code" href="struct_block_cipher_documentation.html" title="These objects usually should not be used directly. See CipherModeDocumentation instead...">BlockCipherDocumentation</a><a name="l00111"></a>00111 {<a name="l00112"></a>00112         <span class="keyword">class </span>CRYPTOPP_NO_VTABLE Base : <span class="keyword">public</span> <a class="code" href="class_block_cipher_impl.html">BlockCipherImpl</a>&lt;DES_XEX3_Info&gt;<a name="l00113"></a>00113         {<a name="l00114"></a>00114         <span class="keyword">public</span>:<a name="l00115"></a>00115                 <span class="keywordtype">void</span> UncheckedSetKey(<span class="keyword">const</span> byte *userKey, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length, <span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> &amp;params);<a name="l00116"></a>00116                 <span class="keywordtype">void</span> ProcessAndXorBlock(<span class="keyword">const</span> byte *inBlock, <span class="keyword">const</span> byte *xorBlock, byte *outBlock) <span class="keyword">const</span>;<a name="l00117"></a>00117 <a name="l00118"></a>00118         <span class="keyword">protected</span>:<a name="l00119"></a>00119                 <a class="code" href="class_fixed_size_sec_block.html" title="a SecBlock with fixed size, allocated statically">FixedSizeSecBlock&lt;byte, BLOCKSIZE&gt;</a> m_x1, m_x3;<a name="l00120"></a>00120                 <span class="comment">// VS2005 workaround: calling modules compiled with /clr gets unresolved external symbol DES::Base::ProcessAndXorBlock</span><a name="l00121"></a>00121                 <span class="comment">// if we use DES::Encryption here directly without value_ptr.</span><a name="l00122"></a>00122                 <a class="code" href="classvalue__ptr.html">value_ptr&lt;DES::Encryption&gt;</a> m_des;<a name="l00123"></a>00123         };<a name="l00124"></a>00124 <a name="l00125"></a>00125 <span class="keyword">public</span>:<a name="l00126"></a><a class="code" href="class_d_e_s___x_e_x3.html#b354fbe2c7cec4ee5de37b35df8a01ae">00126</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;ENCRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Encryption</a>;<a name="l00127"></a><a class="code" href="class_d_e_s___x_e_x3.html#0bf70a14613af7b76e40eb12fe2fb534">00127</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">BlockCipherFinal&lt;DECRYPTION, Base&gt;</a> <a class="code" href="class_block_cipher_final.html" title="_">Decryption</a>;<a name="l00128"></a>00128 };<a name="l00129"></a>00129 <a name="l00130"></a><a class="code" href="des_8h.html#2ea1d47f252e5062abf5f114e86380ea">00130</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES::Encryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DESEncryption</a>;<a name="l00131"></a><a class="code" href="des_8h.html#685dc1bf56b6b932212e78122420a73d">00131</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES::Decryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DESDecryption</a>;<a name="l00132"></a>00132 <a name="l00133"></a><a class="code" href="des_8h.html#e14dc31eb230f2257094a8aecdc9cc6c">00133</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE2::Encryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE2_Encryption</a>;<a name="l00134"></a><a class="code" href="des_8h.html#8e568e758ee570c418aa90c1bf21ad0d">00134</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE2::Decryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE2_Decryption</a>;<a name="l00135"></a>00135 <a name="l00136"></a><a class="code" href="des_8h.html#7806532b2274edee64c14354097a9258">00136</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE3::Encryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE3_Encryption</a>;<a name="l00137"></a><a class="code" href="des_8h.html#fb113654f94f112dcfbb3407d3a16feb">00137</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE3::Decryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_EDE3_Decryption</a>;<a name="l00138"></a>00138 <a name="l00139"></a><a class="code" href="des_8h.html#5eb18c6daae18c60907947763ddbb242">00139</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_XEX3::Encryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_XEX3_Encryption</a>;<a name="l00140"></a><a class="code" href="des_8h.html#9df225ede099c956295463550924bb05">00140</a> <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_final.html" title="_">DES_XEX3::Decryption</a> <a class="code" href="class_block_cipher_final.html" title="_">DES_XEX3_Decryption</a>;<a name="l00141"></a>00141 <a name="l00142"></a>00142 NAMESPACE_END<a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 1 11:11:20 2007 for Crypto++ by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>

⌨️ 快捷键说明

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