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

📄 skipjack_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++: skipjack.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>skipjack.h</h1><a href="skipjack_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef CRYPTOPP_SKIPJACK_H</span>00002 <span class="preprocessor"></span><span class="preprocessor">#define CRYPTOPP_SKIPJACK_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 "secblock.h"</span>00009 00010 NAMESPACE_BEGIN(CryptoPP)00011 00012 <span class="keyword">struct </span>SKIPJACK_Info : <span class="keyword">public</span> <a class="code" href="class_fixed_block_size.html">FixedBlockSize</a>&lt;8&gt;, <span class="keyword">public</span> <a class="code" href="class_fixed_key_length.html">FixedKeyLength</a>&lt;10&gt;00013 {00014         CRYPTOPP_DLL <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * StaticAlgorithmName() {<span class="keywordflow">return</span> <span class="stringliteral">"SKIPJACK"</span>;}00015 };00016 <span class="comment"></span>00017 <span class="comment">/// &lt;a href="http://www.weidai.com/scan-mirror/cs.html#SKIPJACK"&gt;SKIPJACK&lt;/a&gt;</span><a name="l00018"></a><a class="code" href="class_s_k_i_p_j_a_c_k.html">00018</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_s_k_i_p_j_a_c_k.html">SKIPJACK</a> : <span class="keyword">public</span> SKIPJACK_Info, <span class="keyword">public</span> <a class="code" href="struct_block_cipher_documentation.html">BlockCipherDocumentation</a>00019 {00020         <span class="keyword">class </span>CRYPTOPP_DLL Base : <span class="keyword">public</span> BlockCipherBaseTemplate&lt;SKIPJACK_Info&gt;00021         {00022         <span class="keyword">public</span>:00023                 <span class="keywordtype">void</span> UncheckedSetKey(<a class="code" href="cryptlib_8h.html#a11">CipherDir</a> direction, <span class="keyword">const</span> byte *userKey, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length);00024 00025         <span class="keyword">protected</span>:00026                 <span class="keyword">static</span> <span class="keyword">const</span> byte fTable[256];00027 00028                 FixedSizeSecBlock&lt;byte[256], 10&gt; tab;00029         };00030 00031         <span class="keyword">class </span>CRYPTOPP_DLL Enc : <span class="keyword">public</span> Base00032         {00033         <span class="keyword">public</span>:00034                 <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>;00035         <span class="keyword">private</span>:00036                 <span class="keyword">static</span> <span class="keyword">const</span> byte Se[256];00037                 <span class="keyword">static</span> <span class="keyword">const</span> word32 Te[4][256];00038         };00039 00040         <span class="keyword">class </span>CRYPTOPP_DLL Dec : <span class="keyword">public</span> Base00041         {00042         <span class="keyword">public</span>:00043                 <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>;00044         <span class="keyword">private</span>:00045                 <span class="keyword">static</span> <span class="keyword">const</span> byte Sd[256];00046                 <span class="keyword">static</span> <span class="keyword">const</span> word32 Td[4][256];00047         };00048 00049 <span class="keyword">public</span>:<a name="l00050"></a><a class="code" href="class_s_k_i_p_j_a_c_k.html#_s_k_i_p_j_a_c_kw0">00050</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_template.html">BlockCipherTemplate&lt;ENCRYPTION, Enc&gt;</a> <a class="code" href="class_block_cipher_template.html">Encryption</a>;<a name="l00051"></a><a class="code" href="class_s_k_i_p_j_a_c_k.html#_s_k_i_p_j_a_c_kw1">00051</a>         <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_template.html">BlockCipherTemplate&lt;DECRYPTION, Dec&gt;</a> <a class="code" href="class_block_cipher_template.html">Decryption</a>;00052 };00053 00054 <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_template.html">SKIPJACK::Encryption</a> <a class="code" href="class_block_cipher_template.html">SKIPJACKEncryption</a>;00055 <span class="keyword">typedef</span> <a class="code" href="class_block_cipher_template.html">SKIPJACK::Decryption</a> <a class="code" href="class_block_cipher_template.html">SKIPJACKDecryption</a>;00056 00057 NAMESPACE_END00058 00059 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:34:25 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 + -