<!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>pgpPktSymkey_s struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.17 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>pgpPktSymkey_s Struct Reference</h1>5.3. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a>></code> <p> <table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Data Fields</h2></td></tr> <tr><td nowrap align=right valign=top>byte </td><td valign=bottom><a class="el" href="structpgpPktSymkey__s.html#m0">version</a></td></tr> <tr><td nowrap align=right valign=top>byte </td><td valign=bottom><a class="el" href="structpgpPktSymkey__s.html#m1">symkey_algo</a></td></tr> <tr><td nowrap align=right valign=top>byte </td><td valign=bottom><a class="el" href="structpgpPktSymkey__s.html#m2">s2k</a> [1]</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> 5.3. <p> Symmetric-Key Encrypted Session-Key Packets (Tag 3) <p> The Symmetric-Key Encrypted Session Key packet holds the symmetric- key encryption of a session key used to encrypt a message. Zero or more Encrypted Session Key packets and/or Symmetric-Key Encrypted Session Key packets may precede a Symmetrically Encrypted Data Packet that holds an encrypted message. The message is encrypted with a session key, and the session key is itself encrypted and stored in the Encrypted Session Key packet or the Symmetric-Key Encrypted Session Key packet. <p> If the Symmetrically Encrypted Data Packet is preceded by one or more Symmetric-Key Encrypted Session Key packets, each specifies a passphrase that may be used to decrypt the message. This allows a message to be encrypted to a number of public keys, and also to one or more pass phrases. This packet type is new, and is not generated by PGP 2.x or PGP 5.0. <p> The body of this packet consists of:<ul> <li>A one-octet version number. The only currently defined version is 4.<li>A one-octet number describing the symmetric algorithm used.<li>A string-to-key (S2K) specifier, length as defined above.<li>Optionally, the encrypted session key itself, which is decrypted with the string-to-key object. </ul> <p> <p> Definition at line <a class="el" href="rpmpgp_8h-source.html#l00516">516</a> of file <a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a>.<hr><h2>Field Documentation</h2> <a name="m2" doxytag="pgpPktSymkey_s::s2k"></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"> byte pgpPktSymkey_s::s2k[1] </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rpmpgp_8h-source.html#l00519">519</a> of file <a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a>. </td> </tr> </table> <a name="m1" doxytag="pgpPktSymkey_s::symkey_algo"></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"> byte pgpPktSymkey_s::symkey_algo </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rpmpgp_8h-source.html#l00518">518</a> of file <a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a>. </td> </tr> </table> <a name="m0" doxytag="pgpPktSymkey_s::version"></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"> byte pgpPktSymkey_s::version </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> version number (4). <p> Definition at line <a class="el" href="rpmpgp_8h-source.html#l00517">517</a> of file <a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a>. </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li>rpmio/<a class="el" href="rpmpgp_8h-source.html">rpmpgp.h</a></ul> <hr><address style="align: right;"><small>Generated on Thu Sep 12 22:15:11 2002 for rpm 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.17 </small></address> </body> </html>