📄 class_invertible_e_s_i_g_n_function.html
字号:
<tr><td class="mdescLeft"> </td><td class="mdescRight">calls the above function with a <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> object that just specifies "KeySize" <br><br></td></tr><tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_x_t_r___d_he0" doxytag="InvertibleESIGNFunction::ThrowIfTypeMismatch"></a>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_invertible_e_s_i_g_n_function.html#_x_t_r___d_he0">ThrowIfTypeMismatch</a> (const char *name, const std::type_info &stored, const std::type_info &retrieving)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">used by derived classes to check for type mismatch <br><br></td></tr><tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_invertible_e_s_i_g_n_functionb0" doxytag="InvertibleESIGNFunction::GetK"></a>unsigned int </td><td class="memItemRight" valign=bottom><b>GetK</b> () const</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_invertible_e_s_i_g_n_functionp0" doxytag="InvertibleESIGNFunction::m_p"></a><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign=bottom><b>m_p</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_invertible_e_s_i_g_n_functionp1" doxytag="InvertibleESIGNFunction::m_q"></a><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign=bottom><b>m_q</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_invertible_e_s_i_g_n_functionp2" doxytag="InvertibleESIGNFunction::m_n"></a><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign=bottom><b>m_n</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_invertible_e_s_i_g_n_functionp3" doxytag="InvertibleESIGNFunction::m_e"></a><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign=bottom><b>m_e</b></td></tr></table><hr><h2>Member Function Documentation</h2><a name="_invertible_e_s_i_g_n_functiona5" doxytag="InvertibleESIGNFunction::Validate"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool InvertibleESIGNFunction::Validate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="mdname" nowrap> <em>rng</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>level</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><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><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 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#_e_s_i_g_n_functiona3">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_8h-source.html#l00231">Integer::IsOdd()</a>, <a class="el" href="integer_8cpp-source.html#l02616">Integer::One()</a>, and <a class="el" href="esign_8cpp-source.html#l00049">ESIGNFunction::Validate()</a>. </td> </tr></table><a name="_invertible_e_s_i_g_n_functiona7" doxytag="InvertibleESIGNFunction::AssignFrom"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void InvertibleESIGNFunction::AssignFrom </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="mdname1" valign="top" nowrap> <em>source</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>assign values from source to this object <p><dl 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#_e_s_i_g_n_functiona5">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>.<p>References <a class="el" href="argnames_8h-source.html#l00036">Name::Prime1()</a>, and <a class="el" href="argnames_8h-source.html#l00037">Name::Prime2()</a>. </td> </tr></table><a name="_invertible_e_s_i_g_n_functiona8" doxytag="InvertibleESIGNFunction::GenerateRandom"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void InvertibleESIGNFunction::GenerateRandom </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="mdname" nowrap> <em>rng</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="mdname" nowrap> <em>alg</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>parameters: (ModulusSize) <p>Reimplemented from <a class="el" href="class_generatable_crypto_material.html#_x_t_r___d_ha27">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="integer_8cpp-source.html#l02808">Integer::BitCount()</a>, <a class="el" href="integer_8h-source.html#l00268">Integer::GenerateRandom()</a>, <a class="el" href="cryptlib_8h-source.html#l00275">NameValuePairs::GetIntValue()</a>, <a class="el" href="cryptlib_8h-source.html#l00255">NameValuePairs::GetValue()</a>, <a class="el" href="cryptlib_8h-source.html#l00262">NameValuePairs::GetValueWithDefault()</a>, <a class="el" href="integer_8cpp-source.html#l02603">Integer::Power2()</a>, <a class="el" href="secblock_8h-source.html#l00326">SecBlock< byte >::resize()</a>, and <a class="el" href="algparam_8h-source.html#l00044">ConstByteArrayParameter::size()</a>. </td> </tr></table><a name="_x_t_r___d_ha31" doxytag="InvertibleESIGNFunction::Load"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void CryptoMaterial::Load </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> & </td> <td class="mdname1" valign="top" nowrap> <em>bt</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -