📄 class_p_k___signer.html
字号:
<tr> <td class="memname">virtual size_t PK_Signer::SignAndRestart </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"><a class="el" href="class_p_k___message_accumulator.html">PK_MessageAccumulator</a> & </td> <td class="paramname"> <em>messageAccumulator</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">byte * </td> <td class="paramname"> <em>signature</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>restart</em> = <code>true</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>sign and restart messageAccumulator <p><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>size of signature == <a class="el" href="class_p_k___signature_scheme.html#665909c10f27db81343a01c814488652" title="maximum signature length produced for a given length of recoverable message part">MaxSignatureLength()</a> </dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>actual signature length </dd></dl><p>Implemented in <a class="el" href="class_t_f___signer_base.html#31c080b001c73b07ee26730383250fd7">TF_SignerBase</a>, <a class="el" href="class_d_l___signer_base.html#1c0d9588fc5a340a14342c474b2a52e2">DL_SignerBase< T ></a>, and <a class="el" href="class_d_l___signer_base.html#1c0d9588fc5a340a14342c474b2a52e2">DL_SignerBase< SCHEME_OPTIONS::Element ></a>.<p>Referenced by <a class="el" href="cryptlib_8cpp-source.html#l00649">Sign()</a>, <a class="el" href="cryptlib_8cpp-source.html#l00655">SignMessage()</a>, and <a class="el" href="cryptlib_8cpp-source.html#l00662">SignMessageWithRecovery()</a>.</div></div><p><a class="anchor" name="6781cdd4a4a750a9720e268c90a24387"></a><!-- doxytag: member="PK_Signer::SignMessage" ref="6781cdd4a4a750a9720e268c90a24387" args="(RandomNumberGenerator &rng, const byte *message, size_t messageLen, byte *signature) const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">size_t PK_Signer::SignMessage </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 byte * </td> <td class="paramname"> <em>message</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>messageLen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">byte * </td> <td class="paramname"> <em>signature</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>sign a message <p><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>size of signature == <a class="el" href="class_p_k___signature_scheme.html#665909c10f27db81343a01c814488652" title="maximum signature length produced for a given length of recoverable message part">MaxSignatureLength()</a> </dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>actual signature length </dd></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00655">655</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_p_k___signer.html#ff85d006e814ccc8ac943b145a0bfaf9">NewSignatureAccumulator()</a>, and <a class="el" href="class_p_k___signer.html#fbcf3f00d761f681839ae6264743dd34">SignAndRestart()</a>.</div></div><p><a class="anchor" name="76eb862d0cb8d80e0bee7ad52a0da707"></a><!-- doxytag: member="PK_Signer::SignMessageWithRecovery" ref="76eb862d0cb8d80e0bee7ad52a0da707" args="(RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, const byte *nonrecoverableMessage, size_t nonrecoverableMessageLength, byte *signature) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">size_t PK_Signer::SignMessageWithRecovery </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 byte * </td> <td class="paramname"> <em>recoverableMessage</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>recoverableMessageLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const byte * </td> <td class="paramname"> <em>nonrecoverableMessage</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>nonrecoverableMessageLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">byte * </td> <td class="paramname"> <em>signature</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>sign a recoverable message <p><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>size of signature == MaxSignatureLength(recoverableMessageLength) </dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>actual signature length </dd></dl><p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00662">662</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_p_k___signer.html#ff85d006e814ccc8ac943b145a0bfaf9">NewSignatureAccumulator()</a>, and <a class="el" href="class_p_k___signer.html#fbcf3f00d761f681839ae6264743dd34">SignAndRestart()</a>.</div></div><p><a class="anchor" name="95da484b356e57bac7548b1ea51f64cd"></a><!-- doxytag: member="PK_Signer::IsProbabilistic" ref="95da484b356e57bac7548b1ea51f64cd" args="() const=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool PK_SignatureScheme::IsProbabilistic </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>requires a random number generator to sign <p>if this returns false, <a class="el" href="cryptlib_8h.html#fcd6162a0a4d19df92106149e7eaf55a" title="returns a reference that can be passed to functions that ask for a RNG but doesn't...">NullRNG()</a> can be passed to functions that take <a class="el" href="class_random_number_generator.html" title="interface for random number generators">RandomNumberGenerator</a> & <p>Implemented in <a class="el" href="class_t_f___signature_scheme_base.html#db5ef45069481de1ceca75a847aa37f4">TF_SignatureSchemeBase< PK_Verifier, TF_Base< TrapdoorFunction, PK_SignatureMessageEncodingMethod > ></a>, <a class="el" href="class_t_f___signature_scheme_base.html#db5ef45069481de1ceca75a847aa37f4">TF_SignatureSchemeBase< PK_Signer, TF_Base< RandomizedTrapdoorFunctionInverse, PK_SignatureMessageEncodingMethod > ></a>, <a class="el" href="class_d_l___signature_scheme_base.html#1c195318486467bcb8492ca5ea8fe5c7">DL_SignatureSchemeBase< PK_Signer, DL_PrivateKey< SCHEME_OPTIONS::Element > ></a>, <a class="el" href="class_d_l___signature_scheme_base.html#1c195318486467bcb8492ca5ea8fe5c7">DL_SignatureSchemeBase< PK_Verifier, DL_PublicKey< SCHEME_OPTIONS::Element > ></a>, <a class="el" href="class_d_l___signature_scheme_base.html#1c195318486467bcb8492ca5ea8fe5c7">DL_SignatureSchemeBase< PK_Verifier, DL_PublicKey< T > ></a>, and <a class="el" href="class_d_l___signature_scheme_base.html#1c195318486467bcb8492ca5ea8fe5c7">DL_SignatureSchemeBase< PK_Signer, DL_PrivateKey< T > ></a>.</div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="cryptlib_8h-source.html">cryptlib.h</a><li><a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 1 11:11:45 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 + -