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

📄 classpssldiffiehellman.html

📁 pwlib开发文档
💻 HTML
字号:
<!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>PSSLDiffieHellman class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PSSLDiffieHellman Class Reference</h1><code>#include &lt;<a class="el" href="pssl_8h-source.html">pssl.h</a>&gt;</code><p><p>Inheritance diagram for PSSLDiffieHellman:<p><center><img src="classPSSLDiffieHellman.png" usemap="#PSSLDiffieHellman_map" border="0" alt=""></center><map name="PSSLDiffieHellman_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,118,24"></map><a href="classPSSLDiffieHellman-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a0">PSSLDiffieHellman</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a1">PSSLDiffieHellman</a> (const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;dhFile, <a class="el" href="pssl_8h.html#a3">PSSLFileTypes</a> fileType=PSSLFileTypeDEFAULT)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a2">PSSLDiffieHellman</a> (const BYTE *pData, PINDEX pSize, const BYTE *gData, PINDEX gSize)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a3">PSSLDiffieHellman</a> (const PSSLDiffieHellman &amp;<a class="el" href="classPSSLDiffieHellman.html#n0">dh</a>)</td></tr><tr><td nowrap align=right valign=top>PSSLDiffieHellman &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a4">operator=</a> (const PSSLDiffieHellman &amp;<a class="el" href="classPSSLDiffieHellman.html#n0">dh</a>)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a5">~PSSLDiffieHellman</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a6">operator dh_st *</a> () const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#a7">Load</a> (const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;dhFile, <a class="el" href="pssl_8h.html#a3">PSSLFileTypes</a> fileType=PSSLFileTypeDEFAULT)</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top>dh_st *&nbsp;</td><td valign=bottom><a class="el" href="classPSSLDiffieHellman.html#n0">dh</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Diffie-Hellman parameters for SSL. This class embodies a set of Diffie Helman parameters as used by <a class="el" href="classPSSLContext.html">PSSLContext</a> and <a class="el" href="classPSSLChannel.html">PSSLChannel</a> classes. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PSSLDiffieHellman::PSSLDiffieHellman"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::PSSLDiffieHellman </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create an empty set of Diffie-Hellman parameters.     </td>  </tr></table><a name="a1" doxytag="PSSLDiffieHellman::PSSLDiffieHellman"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::PSSLDiffieHellman </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dhFile</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="pssl_8h.html#a3">PSSLFileTypes</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>fileType</em> = PSSLFileTypeDEFAULT</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a new set of Diffie-Hellman parameters given the file. The type of the file can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>fileType</em>&nbsp;</td><td>Diffie-Hellman parameters file Type of file to read </td></tr></table></dl>    </td>  </tr></table><a name="a2" doxytag="PSSLDiffieHellman::PSSLDiffieHellman"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::PSSLDiffieHellman </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pData</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pSize</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>gData</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>gSize</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a set of Diffie-Hellman parameters. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pSize</em>&nbsp;</td><td>P data </td></tr><tr><td valign=top><em>gData</em>&nbsp;</td><td>Size of P data </td></tr><tr><td valign=top><em>gSize</em>&nbsp;</td><td>G data Size of G data </td></tr></table></dl>    </td>  </tr></table><a name="a3" doxytag="PSSLDiffieHellman::PSSLDiffieHellman"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::PSSLDiffieHellman </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const PSSLDiffieHellman &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>dh</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a copy of the Diffie-Hellman parameters.     </td>  </tr></table><a name="a5" doxytag="PSSLDiffieHellman::~PSSLDiffieHellman"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::~PSSLDiffieHellman </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Destroy and release storage for Diffie-Hellman parameters.     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a7" doxytag="PSSLDiffieHellman::Load"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PSSLDiffieHellman::Load </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dhFile</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="pssl_8h.html#a3">PSSLFileTypes</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>fileType</em> = PSSLFileTypeDEFAULT</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Load Diffie-Hellman parameters from file. The type of the file can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>fileType</em>&nbsp;</td><td>Diffie-Hellman parameters file Type of file to read </td></tr></table></dl>    </td>  </tr></table><a name="a6" doxytag="PSSLDiffieHellman::operator dh_st *"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman::operator dh_st * </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get internal OpenSSL DH structure.     </td>  </tr></table><a name="a4" doxytag="PSSLDiffieHellman::operator="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PSSLDiffieHellman&amp; PSSLDiffieHellman::operator= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const PSSLDiffieHellman &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>dh</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a copy of the Diffie-Hellman parameters.     </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="n0" doxytag="PSSLDiffieHellman::dh"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> dh_st* PSSLDiffieHellman::dh<code> [protected]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="pssl_8h-source.html">pssl.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:19 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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