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

📄 class_p_k___verifier_base.html

📁 Crypto++是一个非常强大的密码学库,主要是功能全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  <tr>    <td>      &nbsp;    </td>    <td><p>If this function returns true, you must input the signature when calling <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea15">NewVerificationAccumulator()</a>. Otherwise, you must input the signature when calling <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea16">Verify()</a>. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01268">1268</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.    </td>  </tr></table><a name="_verifier_with_recovery_templatea15" doxytag="PK_VerifierBase::NewVerificationAccumulator"></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 <a class="el" href="class_hash_transformation.html">HashTransformation</a>* PK_Verifier::NewVerificationAccumulator </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const byte *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>signature</em> = NULL          </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>create a new <a class="el" href="class_hash_transformation.html">HashTransformation</a> to accumulate the message to be verified <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>signature</em>&nbsp;</td><td>is ignored if <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea14">SignatureUpfrontForVerification()</a> == false </td></tr>    <tr><td valign=top><em>signature</em>&nbsp;</td><td>may be NULL to indicate that the signature is not available yet</td></tr>  </table></dl><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l01274">1274</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>References <a class="el" href="class_p_k___signature_scheme.html#_p_k___verifier_with_recoverya7">PK_SignatureScheme::NewMessageAccumulator()</a>.<p>Referenced by <a class="el" href="cryptlib_8cpp-source.html#l00638">PK_Verifier::VerifyMessage()</a>.    </td>  </tr></table><a name="_verifier_with_recovery_templatea16" doxytag="PK_VerifierBase::Verify"></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 PK_Verifier::Verify </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_hash_transformation.html">HashTransformation</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>messageAccumulator</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const byte *&nbsp;</td>          <td class="mdname" nowrap> <em>signature</em> = NULL</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator (even in case of exception thrown) <p><dl compact><dt><b>Precondition:</b></dt><dd>messageAccumulator was obtained by calling <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea15">NewVerificationAccumulator()</a> <p><a class="el" href="class_hash_transformation.html#_x_m_a_c_c___basea13">HashTransformation::Final()</a> has not been called on messageAccumulator <p>length of signature == <a class="el" href="class_p_k___signature_scheme.html#_p_k___verifier_with_recoverya6">SignatureLength()</a> </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>signature</em>&nbsp;</td><td>is ignored if <a class="el" href="class_p_k___verifier.html#_verifier_with_recovery_templatea14">SignatureUpfrontForVerification()</a> == true</td></tr>  </table></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00632">632</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_p_k___verifier.html#_p_k___verifier_with_recoverya11">PK_Verifier::VerifyAndRestart()</a>.    </td>  </tr></table><a name="_verifier_with_recovery_templatea18" doxytag="PK_VerifierBase::VerifyMessage"></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 PK_Verifier::VerifyMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const byte *&nbsp;</td>          <td class="mdname" nowrap> <em>message</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>messageLen</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const byte *&nbsp;</td>          <td class="mdname" nowrap> <em>signature</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>check whether sig is a valid signature for message <p><dl compact><dt><b>Precondition:</b></dt><dd>size of signature == <a class="el" href="class_p_k___signature_scheme.html#_p_k___verifier_with_recoverya6">SignatureLength()</a> </dd></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00638">638</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="cryptlib_8h-source.html#l01274">PK_Verifier::NewVerificationAccumulator()</a>, and <a class="el" href="class_p_k___verifier.html#_p_k___verifier_with_recoverya11">PK_Verifier::VerifyAndRestart()</a>.    </td>  </tr></table><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="align: right;"><small>Generated on Tue Jul 8 23:35:21 2003 for Crypto++ by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address></body></html>

⌨️ 快捷键说明

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