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

📄 class_a_s_n1_key.html

📁 Crypto++是一个非常强大的密码学库,主要是功能全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="_x_t_r___d_ha44" doxytag="ASN1Key::GetRequiredParameter"></a>template&lt;class T&gt; void&nbsp;</td><td class="memItemRight" valign=bottom><b>GetRequiredParameter</b> (const char *className, const char *name, T &amp;value) const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_x_t_r___d_ha45" doxytag="ASN1Key::GetRequiredIntParameter"></a>void&nbsp;</td><td class="memItemRight" valign=bottom><b>GetRequiredIntParameter</b> (const char *className, const char *name, int &amp;value) const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_x509_public_keya28" doxytag="ASN1Key::GetVoidValue"></a>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_a_s_n1_key.html#_x509_public_keya28">GetVoidValue</a> (const char *name, const std::type_info &amp;valueType, void *pValue) const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">to be implemented by derived classes, users should use one of the above functions instead <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="ASN1Key::ThrowIfTypeMismatch"></a>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_a_s_n1_key.html#_x_t_r___d_he0">ThrowIfTypeMismatch</a> (const char *name, const std::type_info &amp;stored, const std::type_info &amp;retrieving)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">used by derived classes to check for type mismatch <br><br></td></tr></table><hr><h2>Member Function Documentation</h2><a name="_x509_public_keya9" doxytag="ASN1Key::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"> void ASN1CryptoMaterial::Load </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>bt</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</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>      &nbsp;    </td>    <td><p>load key from a <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>KeyingErr</em>&nbsp;</td><td>if decode fails </td></tr>  </table></dl><dl 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 from <a class="el" href="class_crypto_material.html#_x_t_r___d_ha31">CryptoMaterial</a>.<p>Definition at line <a class="el" href="simple_8h-source.html#l00049">49</a> of file <a class="el" href="simple_8h-source.html">simple.h</a>.<p>References <a class="el" href="class_a_s_n1_object.html#_a_s_n1_objecta1">ASN1Object::BERDecode()</a>.    </td>  </tr></table><a name="_x509_public_keya10" doxytag="ASN1Key::BEREncode"></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 ASN1Object::BEREncode </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>bt</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>encode this object into a <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a>, using BER <p>this may be useful if <a class="el" href="class_a_s_n1_object.html#_a_s_n1_objecta2">DEREncode()</a> would be too inefficient <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01582">1582</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="simple_8h-source.html#l00047">ASN1CryptoMaterial::Save()</a>.    </td>  </tr></table><a name="_x509_public_keya11" doxytag="ASN1Key::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"> virtual void CryptoMaterial::AssignFrom </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>source</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [pure virtual, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>Implemented in <a class="el" href="class_d_l___group_parameters___e_c.html#_d_l___group_parameters___e_ca7">DL_GroupParameters_EC&lt; EC &gt;</a>, <a class="el" href="class_e_s_i_g_n_function.html#_e_s_i_g_n_functiona5">ESIGNFunction</a>, <a class="el" href="class_invertible_e_s_i_g_n_function.html#_invertible_e_s_i_g_n_functiona7">InvertibleESIGNFunction</a>, <a class="el" href="class_d_l___group_parameters___integer_based.html#_d_l___group_parameters_impl_3_01_mod_exp_precomputation_00_01_d_l___fixed_base_precomputation_impl_3_01typename_mod_exp_precomputation_1_1_element_01_4_00_01_d_l___group_parameters___integer_based_01_4a12">DL_GroupParameters_IntegerBased</a>, <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#_d_l___group_parameters___integer_based_impla1">DL_GroupParameters_IntegerBasedImpl&lt; GROUP_PRECOMP, BASE_PRECOMP &gt;</a>, <a class="el" href="class_l_u_c_function.html#_l_u_c_functiona8">LUCFunction</a>, <a class="el" href="class_invertible_l_u_c_function.html#_invertible_l_u_c_functiona7">InvertibleLUCFunction</a>, <a class="el" href="class_rabin_function.html#_rabin_functiona8">RabinFunction</a>, <a class="el" href="class_invertible_rabin_function.html#_invertible_rabin_functiona7">InvertibleRabinFunction</a>, <a class="el" href="class_r_s_a_function.html#_r_s_a_functiona6">RSAFunction</a>, <a class="el" href="class_invertible_r_s_a_function.html#_invertible_r_s_a_functiona10">InvertibleRSAFunction</a>, <a class="el" href="class_r_w_function.html#_r_w_functiona8">RWFunction&lt; r &gt;</a>, <a class="el" href="class_invertible_r_w_function.html#_invertible_r_w_functiona7">InvertibleRWFunction&lt; r &gt;</a>, <a class="el" href="class_x_t_r___d_h.html#_x_t_r___d_ha6">XTR_DH</a>, <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#_d_l___group_parameters___integer_based_impla1">DL_GroupParameters_IntegerBasedImpl&lt; DL_GroupPrecomputation_LUC, DL_BasePrecomputation_LUC &gt;</a>, and <a class="el" href="class_d_l___group_parameters___integer_based_impl.html#_d_l___group_parameters___integer_based_impla1">DL_GroupParameters_IntegerBasedImpl&lt; ModExpPrecomputation &gt;</a>.    </td>  </tr></table><a name="_x509_public_keya12" doxytag="ASN1Key::Validate"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">

⌨️ 快捷键说明

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