Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rpm: pgpPktSymkey_s Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">rpm
   &#160;<span id="projectnumber">4.14.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">pgpPktSymkey_s Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>5.3.  
 <a href="structpgpPktSymkey__s.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ac349e9715dee13590c8bb75360b16704"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktSymkey__s.html#ac349e9715dee13590c8bb75360b16704">version</a></td></tr>
<tr class="separator:ac349e9715dee13590c8bb75360b16704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4bba23640c350ffc24999b6fa3ad176"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktSymkey__s.html#af4bba23640c350ffc24999b6fa3ad176">symkey_algo</a></td></tr>
<tr class="separator:af4bba23640c350ffc24999b6fa3ad176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca1ab9d5fb064f098950cc0d3004d19f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktSymkey__s.html#aca1ab9d5fb064f098950cc0d3004d19f">s2k</a> [1]</td></tr>
<tr class="separator:aca1ab9d5fb064f098950cc0d3004d19f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>5.3. </p>
<p>Symmetric-Key Encrypted Session-Key Packets (Tag 3)</p>
<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>
<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>
<p>The body of this packet consists of:</p><ul>
<li>A one-octet version number. The only currently defined version is 4.</li>
<li>A one-octet number describing the symmetric algorithm used.</li>
<li>A string-to-key (S2K) specifier, length as defined above.</li>
<li>Optionally, the encrypted session key itself, which is decrypted with the string-to-key object. </li>
</ul>

<p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00492">492</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="aca1ab9d5fb064f098950cc0d3004d19f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca1ab9d5fb064f098950cc0d3004d19f">&#9670;&nbsp;</a></span>s2k</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t pgpPktSymkey_s::s2k[1]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00495">495</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>

</div>
</div>
<a id="af4bba23640c350ffc24999b6fa3ad176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4bba23640c350ffc24999b6fa3ad176">&#9670;&nbsp;</a></span>symkey_algo</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t pgpPktSymkey_s::symkey_algo</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00494">494</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>

</div>
</div>
<a id="ac349e9715dee13590c8bb75360b16704"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac349e9715dee13590c8bb75360b16704">&#9670;&nbsp;</a></span>version</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t pgpPktSymkey_s::version</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>version number (4). </p>

<p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00493">493</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>