📄 class_invertible_e_s_i_g_n_function.html
字号:
<a class="anchor" name="1c64c8101a488232cde43a5c473742b1"></a><!-- doxytag: member="InvertibleESIGNFunction::Validate" ref="1c64c8101a488232cde43a5c473742b1" args="(RandomNumberGenerator &rng, unsigned int level) const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">bool InvertibleESIGNFunction::Validate </td> <td>(</td> <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="paramname"> <em>rng</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>level</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [virtual]</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> </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_e_s_i_g_n_function.html#cc185d24c97a74543a6e5820219282bd">ESIGNFunction</a>.<p>Definition at line <a class="el" href="esign_8cpp-source.html#l00181">181</a> of file <a class="el" href="esign_8cpp-source.html">esign.cpp</a>.<p>References <a class="el" href="integer_8cpp-source.html#l03054">Integer::BitCount()</a>, <a class="el" href="integer_8h-source.html#l00211">Integer::IsOdd()</a>, <a class="el" href="esign_8h-source.html#l00048">ESIGNFunction::m_n</a>, <a class="el" href="esign_8h-source.html#l00082">m_p</a>, <a class="el" href="esign_8h-source.html#l00082">m_q</a>, <a class="el" href="integer_8cpp-source.html#l02867">Integer::One()</a>, and <a class="el" href="esign_8cpp-source.html#l00049">ESIGNFunction::Validate()</a>.</div></div><p><a class="anchor" name="ca870e350b30d04a47d452f21e903278"></a><!-- doxytag: member="InvertibleESIGNFunction::AssignFrom" ref="ca870e350b30d04a47d452f21e903278" args="(const NameValuePairs &source)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void InvertibleESIGNFunction::AssignFrom </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="paramname"> <em>source</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</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_e_s_i_g_n_function.html#1ff8229ed7786a13a69d15e5a64e4d21">ESIGNFunction</a>.<p>Definition at line <a class="el" href="esign_8cpp-source.html#l00202">202</a> of file <a class="el" href="esign_8cpp-source.html">esign.cpp</a>.</div></div><p><a class="anchor" name="241b733193f9f420f188ca6f57d49c27"></a><!-- doxytag: member="InvertibleESIGNFunction::GenerateRandom" ref="241b733193f9f420f188ca6f57d49c27" args="(RandomNumberGenerator &rng, const NameValuePairs &alg)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void InvertibleESIGNFunction::GenerateRandom </td> <td>(</td> <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </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> & </td> <td class="paramname"> <em>alg</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>parameters: (ModulusSize) <p>Reimplemented from <a class="el" href="class_generatable_crypto_material.html#be368b52db1ca7079b690f2d6e605f7a">GeneratableCryptoMaterial</a>.<p>Definition at line <a class="el" href="esign_8cpp-source.html#l00075">75</a> of file <a class="el" href="esign_8cpp-source.html">esign.cpp</a>.<p>References <a class="el" href="algparam_8h-source.html#l00042">ConstByteArrayParameter::begin()</a>, <a class="el" href="cryptlib_8h-source.html#l00103">BIG_ENDIAN_ORDER</a>, <a class="el" href="integer_8cpp-source.html#l03054">Integer::BitCount()</a>, <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="cryptlib_8h-source.html#l00260">NameValuePairs::GetValue()</a>, <a class="el" href="cryptlib_8h-source.html#l00267">NameValuePairs::GetValueWithDefault()</a>, <a class="el" href="esign_8h-source.html#l00048">ESIGNFunction::m_e</a>, <a class="el" href="esign_8h-source.html#l00048">ESIGNFunction::m_n</a>, <a class="el" href="esign_8h-source.html#l00082">m_p</a>, <a class="el" href="esign_8h-source.html#l00082">m_q</a>, <a class="el" href="integer_8cpp-source.html#l02846">Integer::Power2()</a>, <a class="el" href="integer_8h-source.html#l00060">Integer::PRIME</a>, <a class="el" href="secblock_8h-source.html#l00427">SecBlock< T, A >::resize()</a>, and <a class="el" href="algparam_8h-source.html#l00044">ConstByteArrayParameter::size()</a>.</div></div><p><a class="anchor" name="23d34a094f5765a1cf51f22ae1233f66"></a><!-- doxytag: member="InvertibleESIGNFunction::Load" ref="23d34a094f5765a1cf51f22ae1233f66" args="(BufferedTransformation &bt)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void <a class="el" href="class_a_s_n1_crypto_material.html">ASN1CryptoMaterial</a>< <a class="el" href="class_public_key.html">PublicKey</a> >::Load </td> <td>(</td> <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> & </td> <td class="paramname"> <em>bt</em> </td> <td> ) </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -