📄 modexppc_8h-source.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++: modexppc.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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div><h1>modexppc.h</h1><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef CRYPTOPP_MODEXPPC_H</span>00002 <span class="preprocessor"></span><span class="preprocessor">#define CRYPTOPP_MODEXPPC_H</span>00003 <span class="preprocessor"></span>00004 <span class="preprocessor">#include "modarith.h"</span>00005 <span class="preprocessor">#include "eprecomp.h"</span>00006 <span class="preprocessor">#include "smartptr.h"</span>00007 <span class="preprocessor">#include "<a class="code" href="pubkey_8h.html">pubkey.h</a>"</span>00008 00009 NAMESPACE_BEGIN(CryptoPP)00010 00011 CRYPTOPP_DLL_TEMPLATE_CLASS DL_FixedBasePrecomputationImpl<Integer>;00012 00013 <span class="keyword">class </span>ModExpPrecomputation : <span class="keyword">public</span> DL_GroupPrecomputation<Integer>00014 {00015 <span class="keyword">public</span>:00016 <span class="comment">// DL_GroupPrecomputation</span>00017 <span class="keywordtype">bool</span> NeedConversions()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <span class="keyword">true</span>;}00018 Element ConvertIn(<span class="keyword">const</span> Element &v)<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_mr->ConvertIn(v);}00019 <span class="keyword">virtual</span> Element ConvertOut(<span class="keyword">const</span> Element &v)<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_mr->ConvertOut(v);}00020 <span class="keyword">const</span> <a class="code" href="class_abstract_group.html">AbstractGroup<Element></a> & GetGroup()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_mr->MultiplicativeGroup();}00021 Element BERDecodeElement(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="class_integer.html">Integer</a>(bt);}00022 <span class="keywordtype">void</span> DEREncodeElement(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &bt, <span class="keyword">const</span> Element &v)<span class="keyword"> const </span>{v.DEREncode(bt);}00023 00024 <span class="comment">// non-inherited</span>00025 <span class="keywordtype">void</span> SetModulus(<span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> &v) {m_mr.reset(<span class="keyword">new</span> <a class="code" href="class_montgomery_representation.html">MontgomeryRepresentation</a>(v));}00026 <span class="keyword">const</span> <a class="code" href="class_integer.html">Integer</a> & GetModulus()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_mr->GetModulus();}00027 00028 <span class="keyword">private</span>:00029 value_ptr<MontgomeryRepresentation> m_mr;00030 };00031 00032 NAMESPACE_END00033 00034 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:34:20 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 + -