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

📄 class_invertible_r_s_a_function___i_s_o.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a class="anchor" name="1416fe1274d2be8b297153ff02fe14dc"></a><!-- doxytag: member="InvertibleRSAFunction_ISO::Validate" ref="1416fe1274d2be8b297153ff02fe14dc" args="(RandomNumberGenerator &amp;rng, unsigned int level) const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">bool InvertibleRSAFunction::Validate           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;&nbsp;</td>          <td class="paramname"> <em>rng</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">unsigned int&nbsp;</td>          <td class="paramname"> <em>level</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"> const<code> [virtual, inherited]</code></td>        </tr>      </table></div><div class="memdoc"><p>check this object for errors <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>level</em>&nbsp;</td><td>denotes the level of thoroughness: 0 - using this object won't cause a crash or exception (rng is ignored) 1 - this object will probably function (encrypt, sign, etc.) correctly (but may not check for weak keys and such) 2 - make sure this object will function correctly, and do reasonable security checks 3 - do checks that may take a long time </td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the tests pass </dd></dl><p>Reimplemented from <a class="el" href="class_r_s_a_function.html#2c43e097f0525db01c15bb53d80c2bea">RSAFunction</a>.<p>Definition at line <a class="el" href="rsa_8cpp-source.html#l00243">243</a> of file <a class="el" href="rsa_8cpp-source.html">rsa.cpp</a>.<p>References <a class="el" href="integer_8h-source.html#l00211">Integer::IsOdd()</a>, <a class="el" href="integer_8h-source.html#l00205">Integer::IsPositive()</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_d</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_dp</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_dq</a>, <a class="el" href="rsa_8h-source.html#l00049">RSAFunction::m_e</a>, <a class="el" href="rsa_8h-source.html#l00049">RSAFunction::m_n</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_p</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_q</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_u</a>, <a class="el" href="integer_8cpp-source.html#l02867">Integer::One()</a>, and <a class="el" href="rsa_8cpp-source.html#l00070">RSAFunction::Validate()</a>.</div></div><p><a class="anchor" name="369c37b8f01c8b64f22baa28811ff72f"></a><!-- doxytag: member="InvertibleRSAFunction_ISO::GenerateRandom" ref="369c37b8f01c8b64f22baa28811ff72f" args="(RandomNumberGenerator &amp;rng, const NameValuePairs &amp;alg)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void InvertibleRSAFunction::GenerateRandom           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;&nbsp;</td>          <td class="paramname"> <em>rng</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>          <td class="paramname"> <em>alg</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"><code> [virtual, inherited]</code></td>        </tr>      </table></div><div class="memdoc"><p>parameters: (ModulusSize, PublicExponent (default 17)) <p>Reimplemented from <a class="el" href="class_generatable_crypto_material.html#be368b52db1ca7079b690f2d6e605f7a">GeneratableCryptoMaterial</a>.<p>Definition at line <a class="el" href="rsa_8cpp-source.html#l00104">104</a> of file <a class="el" href="rsa_8cpp-source.html">rsa.cpp</a>.<p>References <a class="el" href="integer_8h-source.html#l00248">Integer::GenerateRandom()</a>, <a class="el" href="cryptlib_8h-source.html#l00280">NameValuePairs::GetIntValue()</a>, <a class="el" href="nbtheory_8h-source.html#l00049">PrimeSelector::GetSelectorPointer()</a>, <a class="el" href="cryptlib_8h-source.html#l00267">NameValuePairs::GetValueWithDefault()</a>, <a class="el" href="integer_8cpp-source.html#l03954">Integer::InverseMod()</a>, <a class="el" href="integer_8h-source.html#l00209">Integer::IsEven()</a>, <a class="el" href="integer_8h-source.html#l00205">Integer::IsPositive()</a>, <a class="el" href="argnames_8h-source.html#l00023">Name::KeySize()</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_d</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_dp</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_dq</a>, <a class="el" href="rsa_8h-source.html#l00049">RSAFunction::m_e</a>, <a class="el" href="rsa_8h-source.html#l00049">RSAFunction::m_n</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_p</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_q</a>, <a class="el" href="rsa_8h-source.html#l00103">InvertibleRSAFunction::m_u</a>, <a class="el" href="argnames_8h-source.html#l00024">Name::ModulusSize()</a>, <a class="el" href="argnames_8h-source.html#l00036">Name::PointerToPrimeSelector()</a>, and <a class="el" href="argnames_8h-source.html#l00028">Name::PublicExponent()</a>.<p>Referenced by <a class="el" href="rsa_8cpp-source.html#l00143">InvertibleRSAFunction::Initialize()</a>.</div></div><p><a class="anchor" name="871fc366191e9c5fae114c06a200c928"></a><!-- doxytag: member="InvertibleRSAFunction_ISO::AssignFrom" ref="871fc366191e9c5fae114c06a200c928" args="(const NameValuePairs &amp;source)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void InvertibleRSAFunction::AssignFrom           </td>          <td>(</td>          <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>          <td class="paramname"> <em>source</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [virtual, inherited]</code></td>        </tr>      </table></div><div class="memdoc"><p>assign values from source to this object <p><dl class="note" compact><dt><b>Note:</b></dt><dd>This function can be used to create a public key from a private key. </dd></dl><p>Reimplemented from <a class="el" href="class_r_s_a_function.html#d2db62b20297a8d9df55171e73fe8de7">RSAFunction</a>.<p>Definition at line <a class="el" href="rsa_8cpp-source.html#l00276">276</a> of file <a class="el" href="rsa_8cpp-source.html">rsa.cpp</a>.</div></div><p><a class="anchor" name="b8446b61690a19015d3d565d86dd1d3d"></a><!-- doxytag: member="InvertibleRSAFunction_ISO::BEREncode" ref="b8446b61690a19015d3d565d86dd1d3d" args="(BufferedTransformation &amp;bt) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">virtual void ASN1Object::BEREncode           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;&nbsp;</td>          <td class="paramname"> <em>bt</em>          </td>

⌨️ 快捷键说明

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