📄 class_d_l___group_parameters.html
字号:
<div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void GeneratableCryptoMaterial::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>params</em> = <code><a class="el" href="cryptlib_8h.html#d3205973dd1afa14090a683154c1109c">g_nullNameValuePairs</a></code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>generate a random key or crypto parameters <p><dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>KeyingErr</em> </td><td>if algorithm parameters are invalid, or if a key can't be generated (e.g., if this is a public key object) </td></tr> </table></dl><p>Reimplemented in <a class="el" href="class_d_l___group_parameters___e_c.html#519a33d073fe5bf2f278a0de75a404ab">DL_GroupParameters_EC< EC ></a>, <a class="el" href="class_invertible_e_s_i_g_n_function.html#241b733193f9f420f188ca6f57d49c27">InvertibleESIGNFunction</a>, <a class="el" href="class_d_l___group_parameters___integer_based.html#8c9a79c493a215ca37408bb7ddfb5533">DL_GroupParameters_IntegerBased</a>, <a class="el" href="class_d_l___group_parameters___d_s_a.html#c83d3668c342b3a1fb367ed7785e27a3">DL_GroupParameters_DSA</a>, <a class="el" href="class_invertible_l_u_c_function.html#f846ecc0f5e8d17267544920bc39f233">InvertibleLUCFunction</a>, <a class="el" href="class_d_l___private_key_impl.html#b80a3771a5ef623677775f7c5dddb1e0">DL_PrivateKeyImpl< GP ></a>, <a class="el" href="class_invertible_rabin_function.html#571737380b956b4add10c855484af670">InvertibleRabinFunction</a>, <a class="el" href="class_invertible_r_s_a_function.html#369c37b8f01c8b64f22baa28811ff72f">InvertibleRSAFunction</a>, <a class="el" href="class_invertible_r_w_function.html#8953bb59727e0ae2d79071874a793c48">InvertibleRWFunction</a>, and <a class="el" href="class_d_l___private_key_impl.html#b80a3771a5ef623677775f7c5dddb1e0">DL_PrivateKeyImpl< DL_GroupParameters_EC< EC > ></a>.<p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01060">1060</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="cryptlib_8cpp-source.html#l00551">GeneratableCryptoMaterial::GenerateRandomWithKeySize()</a>.</div></div><p><a class="anchor" name="20181c1b39a74a9fe91385b025b773c6"></a><!-- doxytag: member="DL_GroupParameters::AssignFrom" ref="20181c1b39a74a9fe91385b025b773c6" args="(const NameValuePairs &source)=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void CryptoMaterial::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> [pure 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>Implemented in <a class="el" href="class_d_l___group_parameters___e_c.html#8fa1181ce7cf91f12ba6de286d1da5bd">DL_GroupParameters_EC< EC ></a>, <a class="el" href="class_e_s_i_g_n_function.html#1ff8229ed7786a13a69d15e5a64e4d21">ESIGNFunction</a>, <a class="el" href="class_invertible_e_s_i_g_n_function.html#ca870e350b30d04a47d452f21e903278">InvertibleESIGNFunction</a>, <a class="el" href="class_d_l___group_parameters___integer_based.html#151a76c88372bdf98c68be2ad19400e1">DL_GroupParameters_IntegerBased</a>, <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#0d668d2148cf57078a93f3a5a4b4ac2a">DL_GroupParameters_IntegerBasedImpl< GROUP_PRECOMP, BASE_PRECOMP ></a>, <a class="el" href="class_l_u_c_function.html#f6a95ed660e53a5fa07841f139d43ccf">LUCFunction</a>, <a class="el" href="class_invertible_l_u_c_function.html#aaef1b335de1f76ec61079d1dfd78744">InvertibleLUCFunction</a>, <a class="el" href="class_d_l___private_key_impl.html#1f477156648ec8d3cfe18d503f47a92f">DL_PrivateKeyImpl< GP ></a>, <a class="el" href="class_d_l___public_key_impl.html#fa2dcb7fc8d0d83dd6d4563b7ba6ca41">DL_PublicKeyImpl< GP ></a>, <a class="el" href="class_rabin_function.html#e585a0d58b1b95579459c2b42eea980c">RabinFunction</a>, <a class="el" href="class_invertible_rabin_function.html#66594bb7f369e4ecc30bbe6ae62527ea">InvertibleRabinFunction</a>, <a class="el" href="class_r_s_a_function.html#d2db62b20297a8d9df55171e73fe8de7">RSAFunction</a>, <a class="el" href="class_invertible_r_s_a_function.html#871fc366191e9c5fae114c06a200c928">InvertibleRSAFunction</a>, <a class="el" href="class_r_w_function.html#99293c55c055b338bd7c783a7b8c0484">RWFunction</a>, <a class="el" href="class_invertible_r_w_function.html#56b0314b678c58228671d3c9049f86db">InvertibleRWFunction</a>, <a class="el" href="class_x_t_r___d_h.html#f2456cb49f5b36edaaef3c0cae25a775">XTR_DH</a>, <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#0d668d2148cf57078a93f3a5a4b4ac2a">DL_GroupParameters_IntegerBasedImpl< DL_GroupPrecomputation_LUC, DL_BasePrecomputation_LUC ></a>, <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#0d668d2148cf57078a93f3a5a4b4ac2a">DL_GroupParameters_IntegerBasedImpl< ModExpPrecomputation ></a>, <a class="el" href="class_d_l___private_key_impl.html#1f477156648ec8d3cfe18d503f47a92f">DL_PrivateKeyImpl< DL_GroupParameters_EC< EC > ></a>, and <a class="el" href="class_d_l___public_key_impl.html#fa2dcb7fc8d0d83dd6d4563b7ba6ca41">DL_PublicKeyImpl< DL_GroupParameters_EC< EC > ></a>.</div></div><p><a class="anchor" name="e7a94de4c3d3822070db5babbdf8b113"></a><!-- doxytag: member="DL_GroupParameters::Load" ref="e7a94de4c3d3822070db5babbdf8b113" args="(BufferedTransformation &bt)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void CryptoMaterial::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> <td width="100%"><code> [inline, virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>load key from a <a class="el" href="class_buffered_transformation.html" title="interface for buffered transformations">BufferedTransformation</a> <p><dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>KeyingErr</em> </td><td>if decode fails </td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Generally does not check that the key is valid. Call ValidateKey() or ThrowIfInvalidKey() to check that. </dd></dl><p>Reimplemented in <a class="el" href="class_invertible_r_s_a_function.html#d8a540a6369b9043d082b0dc38b99d4b">InvertibleRSAFunction</a>, <a class="el" href="class_a_s_n1_crypto_material.html#23d34a094f5765a1cf51f22ae1233f66">ASN1CryptoMaterial< PrivateKey ></a>, <a class="el" href="class_a_s_n1_crypto_material.html#23d34a094f5765a1cf51f22ae1233f66">ASN1CryptoMaterial< DL_GroupParameters< Integer > ></a>, and <a class="el" href="class_a_s_n1_crypto_material.html#23d34a094f5765a1cf51f22ae1233f66">ASN1CryptoMaterial< PublicKey ></a>.<p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01025">1025</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.</div></div><p><a class="anchor" name="39b6daefcabcdd07f5ae482a075e1728"></a><!-- doxytag: member="DL_GroupParameters::GetIntValue" ref="39b6daefcabcdd07f5ae482a075e1728" args="(const char *name, int &value) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">bool NameValuePairs::GetIntValue </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [inline, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>get a named value with type int <p>used to ensure we don't accidentally try to get an unsigned int or some other type when we mean int (which is the most common case) <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00280">280</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="rw_8cpp-source.html#l00088">InvertibleRWFunction::GenerateRandom()</a>, <a class="el" href="rsa_8cpp-source.html#l00104">InvertibleRSAFunction::GenerateRandom()</a>, <a class="el" href="rabin_8cpp-source.html#l00075">InvertibleRabinFunction::GenerateRandom()</a>, <a class="el" href="luc_8cpp-source.html#l00107">InvertibleLUCFunction::GenerateRandom()</a>, <a class="el" href="gfpcrypt_8cpp-source.html#l00163">DL_GroupParameters_IntegerBased::GenerateRandom()</a>, <a class="el" href="gfpcrypt_8cpp-source.html#l00026">DL_GroupParameters_DSA::GenerateRandom()</a>, <a class="el" href="esign_8cpp-source.html#l00075">InvertibleESIGNFunction::GenerateRandom()</a>, and <a class="el" href="integer_8cpp-source.html#l03253">Integer::GenerateRandomNoThrow()</a>.</div></div><p><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="pubkey_8h-source.html">pubkey.h</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 1 11:11:34 2007 for Crypto++ by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -