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

📄 class_p_k___signer_with_recovery.html

📁 Crypto++是一个非常强大的密码学库,主要是功能全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Crypto++: PK_SignerWithRecovery class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.2 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><h1>PK_SignerWithRecovery Class Reference</h1><code>#include &lt;<a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>&gt;</code><p><p>Inheritance diagram for PK_SignerWithRecovery:<p><center><img src="class_p_k___signer_with_recovery.png" usemap="#PK_SignerWithRecovery_map" border="0" alt=""></center><map name="PK_SignerWithRecovery_map"><area href="class_p_k___signature_scheme_with_recovery.html" alt="PK_SignatureSchemeWithRecovery" shape="rect" coords="0,224,235,248"><area href="class_p_k___signer.html" alt="PK_Signer" shape="rect" coords="367,224,602,248"><area href="class_p_k___signature_scheme.html" alt="PK_SignatureScheme" shape="rect" coords="0,168,235,192"><area href="class_p_k___signature_scheme.html" alt="PK_SignatureScheme" shape="rect" coords="245,168,480,192"><area href="class_private_key_algorithm.html" alt="PrivateKeyAlgorithm" shape="rect" coords="490,168,725,192"><area href="class_asymmetric_algorithm.html" alt="AsymmetricAlgorithm" shape="rect" coords="490,112,725,136"><area href="class_algorithm.html" alt="Algorithm" shape="rect" coords="490,56,725,80"><area href="class_clonable.html" alt="Clonable" shape="rect" coords="490,0,725,24"><area href="class_signer_with_recovery_template.html" alt="SignerWithRecoveryTemplate< TF, H >" shape="rect" coords="183,336,418,360"></map><a href="class_p_k___signer_with_recovery-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>interface for public-key signers with recovery <p><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01320">1320</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___verifier_with_recoverya4" doxytag="PK_SignerWithRecovery::MaximumRecoverableLength"></a>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_p_k___verifier_with_recoverya4">MaximumRecoverableLength</a> () const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">length of longest message that can be fully recovered <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_p_k___verifier_with_recoverya5">AllowLeftoverMessage</a> () const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">whether or not messages longer than <a class="el" href="class_p_k___signature_scheme_with_recovery.html#_p_k___verifier_with_recoverya4">MaximumRecoverableLength()</a> can be signed </em> <a href="#_p_k___verifier_with_recoverya5"></a><em><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___verifier_with_recoverya6" doxytag="PK_SignerWithRecovery::SignatureLength"></a>virtual unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_p_k___verifier_with_recoverya6">SignatureLength</a> () const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">signature length support by this object (as either input or output) <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___verifier_with_recoverya7" doxytag="PK_SignerWithRecovery::NewMessageAccumulator"></a>virtual <a class="el" href="class_hash_transformation.html">HashTransformation</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_p_k___verifier_with_recoverya7">NewMessageAccumulator</a> () const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">deprecated, please use <a class="el" href="class_p_k___signer.html#_signer_with_recovery_templatea12">PK_Signer::NewSignatureAccumulator</a> or <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea15">PK_Verifier::NewVerificationAccumulator</a> instead <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_signer_with_recovery_templatea10">Sign</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, <a class="el" href="class_hash_transformation.html">HashTransformation</a> *messageAccumulator, byte *signature) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sign and delete messageAccumulator (even in case of exception thrown) </em> <a href="#_signer_with_recovery_templatea10"></a><em><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_p_k___signer_with_recoverya5" doxytag="PK_SignerWithRecovery::SignAndRestart"></a>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_p_k___signer_with_recoverya5">SignAndRestart</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, <a class="el" href="class_hash_transformation.html">HashTransformation</a> &amp;messageAccumulator, byte *signature) const=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sign and restart messageAccumulator <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_signer_with_recovery_templatea11">SignMessage</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, const byte *message, unsigned int messageLen, byte *signature) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sign a message </em> <a href="#_signer_with_recovery_templatea11"></a><em><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_signer_with_recovery_templatea12" doxytag="PK_SignerWithRecovery::NewSignatureAccumulator"></a>virtual <a class="el" href="class_hash_transformation.html">HashTransformation</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_signer_with_recovery_templatea12">NewSignatureAccumulator</a> () const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">create a new <a class="el" href="class_hash_transformation.html">HashTransformation</a> to accumulate the message to be signed <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_t_f___private_object_impl_3_01_t_f___digest_signer_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a13" doxytag="PK_SignerWithRecovery::AccessMaterial"></a><a class="el" href="class_crypto_material.html">CryptoMaterial</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_t_f___private_object_impl_3_01_t_f___digest_signer_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a13">AccessMaterial</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a reference to the crypto material used by this object <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_t_f___private_object_impl_3_01_t_f___digest_signer_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14" doxytag="PK_SignerWithRecovery::GetMaterial"></a>const <a class="el" href="class_crypto_material.html">CryptoMaterial</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_t_f___private_object_impl_3_01_t_f___digest_signer_base_00_01_s_c_h_e_m_e___o_p_t_i_o_n_s_01_4a14">GetMaterial</a> () const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a const reference to the crypto material used by this object <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_t_f___digest_signer_basea5" doxytag="PK_SignerWithRecovery::AccessPrivateKey"></a>virtual <a class="el" href="class_private_key.html">PrivateKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>AccessPrivateKey</b> ()=0</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_t_f___digest_signer_basea6" doxytag="PK_SignerWithRecovery::GetPrivateKey"></a>virtual const <a class="el" href="class_private_key.html">PrivateKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetPrivateKey</b> () const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_x_t_r___d_ha24" doxytag="PK_SignerWithRecovery::BERDecode"></a>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_x_t_r___d_ha24">BERDecode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls <a class="el" href="class_asymmetric_algorithm.html#_asymmetric_algorithma0">AccessMaterial()</a>.Load(bt) <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_verifier_with_recovery_templatea23" doxytag="PK_SignerWithRecovery::DEREncode"></a>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_verifier_with_recovery_templatea23">DEREncode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt) const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls <a class="el" href="class_asymmetric_algorithm.html#_asymmetric_algorithma1">GetMaterial()</a>.Save(bt) <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_zlib_decompressora17" doxytag="PK_SignerWithRecovery::AlgorithmName"></a>virtual std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_zlib_decompressora17">AlgorithmName</a> () const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns name of this algorithm, not universally implemented yet <br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_zlib_decompressora18" doxytag="PK_SignerWithRecovery::Clone"></a>virtual <a class="el" href="class_clonable.html">Clonable</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___signer_with_recovery.html#_zlib_decompressora18">Clone</a> () const</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this is not implemented by most classes yet <br><br></td></tr></table><hr><h2>Member Function Documentation</h2><a name="_p_k___verifier_with_recoverya5" doxytag="PK_SignerWithRecovery::AllowLeftoverMessage"></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 bool PK_SignatureSchemeWithRecovery::AllowLeftoverMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>whether or not messages longer than <a class="el" href="class_p_k___signature_scheme_with_recovery.html#_p_k___verifier_with_recoverya4">MaximumRecoverableLength()</a> can be signed <p>If this function returns false, any message longer than <a class="el" href="class_p_k___signature_scheme_with_recovery.html#_p_k___verifier_with_recoverya4">MaximumRecoverableLength()</a> will be truncated for signature and will fail verification.<p>Implemented in <a class="el" href="class_signature_system_with_recovery_base_template.html#_verifier_with_recovery_templatea12">SignatureSystemWithRecoveryBaseTemplate&lt; H &gt;</a>.    </td>  </tr>

⌨️ 快捷键说明

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