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

📄 dsa_8h.html

📁 著名的密码库Crypto++的文档 C++语言的杰作。程序员必备。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>Crypto++: dsa.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.2 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</span></a></li>    <li><a href="classes.html"><span>Classes</span></a></li>    <li class="current"><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="files.html"><span>File&nbsp;List</span></a></li>    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>  </ul></div><h1>dsa.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2><p>Definition in file <a class="el" href="dsa_8h-source.html">dsa.h</a>.<p><code>#include &quot;<a class="el" href="gfpcrypt_8h-source.html">gfpcrypt.h</a>&quot;</code><br><p><a href="dsa_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Enumerations</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a> { <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94c021b0f700ffc5a1a60fbe1b3306b58a">DSA_P1363</a>, <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94ca50e4543c82e6ae2f04358592c569d7">DSA_DER</a>, <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94b6a0ff8c8d8721382dbb821397609b18">DSA_OPENPGP</a> }</td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dsa_8h.html#23661b9fd140d90749d334eb4bf59d02">DSAConvertSignatureFormat</a> (byte *buffer, size_t bufferSize, <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a> toFormat, const byte *signature, size_t signatureLen, <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a> fromFormat)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function converts between these formats, and returns length of signature in the target format.  <a href="#23661b9fd140d90749d334eb4bf59d02"></a><br></td></tr></table><hr><h2>Enumeration Type Documentation</h2><a class="anchor" name="a37ccfd70d4cc99ec03ebb6f9075fc94"></a><!-- doxytag: member="dsa.h::DSASignatureFormat" ref="a37ccfd70d4cc99ec03ebb6f9075fc94" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">enum <a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a>          </td>        </tr>      </table></div><div class="memdoc"><p>The <a class="el" href="struct_d_s_a.html" title="DSA">DSA</a> signature format used by Crypto++ is as defined by IEEE P1363. Java uses the DER format, and OpenPGP uses the OpenPGP format. <dl compact><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em><a class="anchor" name="a37ccfd70d4cc99ec03ebb6f9075fc94c021b0f700ffc5a1a60fbe1b3306b58a"></a><!-- doxytag: member="DSA_P1363" ref="a37ccfd70d4cc99ec03ebb6f9075fc94c021b0f700ffc5a1a60fbe1b3306b58a" args="" -->DSA_P1363</em>&nbsp;</td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="a37ccfd70d4cc99ec03ebb6f9075fc94ca50e4543c82e6ae2f04358592c569d7"></a><!-- doxytag: member="DSA_DER" ref="a37ccfd70d4cc99ec03ebb6f9075fc94ca50e4543c82e6ae2f04358592c569d7" args="" -->DSA_DER</em>&nbsp;</td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="a37ccfd70d4cc99ec03ebb6f9075fc94b6a0ff8c8d8721382dbb821397609b18"></a><!-- doxytag: member="DSA_OPENPGP" ref="a37ccfd70d4cc99ec03ebb6f9075fc94b6a0ff8c8d8721382dbb821397609b18" args="" -->DSA_OPENPGP</em>&nbsp;</td><td></td></tr></table></dl><p>Definition at line <a class="el" href="dsa_8h-source.html#l00013">13</a> of file <a class="el" href="dsa_8h-source.html">dsa.h</a>.</div></div><p><hr><h2>Function Documentation</h2><a class="anchor" name="23661b9fd140d90749d334eb4bf59d02"></a><!-- doxytag: member="dsa.h::DSAConvertSignatureFormat" ref="23661b9fd140d90749d334eb4bf59d02" args="(byte *buffer, size_t bufferSize, DSASignatureFormat toFormat, const byte *signature, size_t signatureLen, DSASignatureFormat fromFormat)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">size_t DSAConvertSignatureFormat           </td>          <td>(</td>          <td class="paramtype">byte *&nbsp;</td>          <td class="paramname"> <em>buffer</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">size_t&nbsp;</td>          <td class="paramname"> <em>bufferSize</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype"><a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a>&nbsp;</td>          <td class="paramname"> <em>toFormat</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const byte *&nbsp;</td>          <td class="paramname"> <em>signature</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">size_t&nbsp;</td>          <td class="paramname"> <em>signatureLen</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype"><a class="el" href="dsa_8h.html#a37ccfd70d4cc99ec03ebb6f9075fc94">DSASignatureFormat</a>&nbsp;</td>          <td class="paramname"> <em>fromFormat</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>This function converts between these formats, and returns length of signature in the target format. <p>If toFormat == DSA_P1363, bufferSize must equal publicKey.SignatureLength() <p>Definition at line <a class="el" href="dsa_8cpp-source.html#l00012">12</a> of file <a class="el" href="dsa_8cpp-source.html">dsa.cpp</a>.<p>References <a class="el" href="integer_8cpp-source.html#l03140">Integer::BERDecode()</a>, <a class="el" href="integer_8cpp-source.html#l03063">Integer::Decode()</a>, <a class="el" href="integer_8cpp-source.html#l03133">Integer::DEREncode()</a>, <a class="el" href="dsa_8h-source.html#l00013">DSA_DER</a>, <a class="el" href="dsa_8h-source.html#l00013">DSA_OPENPGP</a>, <a class="el" href="dsa_8h-source.html#l00013">DSA_P1363</a>, <a class="el" href="integer_8cpp-source.html#l03112">Integer::Encode()</a>, <a class="el" href="asn_8cpp-source.html#l00502">DERGeneralEncoder::MessageEnd()</a>, <a class="el" href="asn_8cpp-source.html#l00437">BERGeneralDecoder::MessageEnd()</a>, <a class="el" href="integer_8cpp-source.html#l03186">Integer::OpenPGPDecode()</a>, <a class="el" href="integer_8cpp-source.html#l03171">Integer::OpenPGPEncode()</a>, and <a class="el" href="filters_8h-source.html#l00593">ArraySink::TotalPutLength()</a>.</div></div><p><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 1 11:11:26 2007 for Crypto++ by&nbsp;<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 + -