Imported Upstream version 4.14.1
[platform/upstream/rpm.git] / doc / librpm / html / structpgpPktKeyV4__s.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.13"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>rpm: pgpPktKeyV4_s Struct Reference</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="doxygen.css" rel="stylesheet" type="text/css" />
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18  <tbody>
19  <tr style="height: 56px;">
20   <td id="projectalign" style="padding-left: 0.5em;">
21    <div id="projectname">rpm
22    &#160;<span id="projectnumber">4.14.1</span>
23    </div>
24   </td>
25  </tr>
26  </tbody>
27 </table>
28 </div>
29 <!-- end header part -->
30 <!-- Generated by Doxygen 1.8.13 -->
31 <script type="text/javascript" src="menudata.js"></script>
32 <script type="text/javascript" src="menu.js"></script>
33 <script type="text/javascript">
34 $(function() {
35   initMenu('',false,false,'search.php','Search');
36 });
37 </script>
38 <div id="main-nav"></div>
39 </div><!-- top -->
40 <div class="header">
41   <div class="summary">
42 <a href="#pub-attribs">Data Fields</a>  </div>
43   <div class="headertitle">
44 <div class="title">pgpPktKeyV4_s Struct Reference<div class="ingroups"><a class="el" href="group__rpmpgp.html">OpenPGP API.</a></div></div>  </div>
45 </div><!--header-->
46 <div class="contents">
47
48 <p>The version 4 format is similar to the version 3 format except for the absence of a validity period.  
49  <a href="structpgpPktKeyV4__s.html#details">More...</a></p>
50
51 <p><code>#include &lt;<a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>&gt;</code></p>
52 <table class="memberdecls">
53 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
54 Data Fields</h2></td></tr>
55 <tr class="memitem:ae2474cfd7306fc9741f20a2535ab8cde"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktKeyV4__s.html#ae2474cfd7306fc9741f20a2535ab8cde">version</a></td></tr>
56 <tr class="separator:ae2474cfd7306fc9741f20a2535ab8cde"><td class="memSeparator" colspan="2">&#160;</td></tr>
57 <tr class="memitem:adb0c5a03e0070860f64af4b322d31c8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmpgp_8h.html#a3f26618361eeb911e1c83947661a4b93">pgpTime_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktKeyV4__s.html#adb0c5a03e0070860f64af4b322d31c8d">time</a></td></tr>
58 <tr class="separator:adb0c5a03e0070860f64af4b322d31c8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
59 <tr class="memitem:ab764c519e8a4c1e89df685930334e3ce"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpgpPktKeyV4__s.html#ab764c519e8a4c1e89df685930334e3ce">pubkey_algo</a></td></tr>
60 <tr class="separator:ab764c519e8a4c1e89df685930334e3ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
61 </table>
62 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
63 <div class="textblock"><p>The version 4 format is similar to the version 3 format except for the absence of a validity period. </p>
64 <p>This has been moved to the signature packet. In addition, fingerprints of version 4 keys are calculated differently from version 3 keys, as described in section "Enhanced Key Formats."</p>
65 <p>A version 4 packet contains:</p><ul>
66 <li>A one-octet version number (4).</li>
67 <li>A four-octet number denoting the time that the key was created.</li>
68 <li>A one-octet number denoting the public key algorithm of this key</li>
69 <li><p class="startli">A series of multi-precision integers comprising the key material. This algorithm-specific portion is:</p>
70 <p class="startli">Algorithm Specific Fields for RSA public keys:</p><ul>
71 <li>multiprecision integer (MPI) of RSA public modulus n;</li>
72 <li>MPI of RSA public encryption exponent e.</li>
73 </ul>
74 <p class="startli">Algorithm Specific Fields for DSA public keys:</p><ul>
75 <li>MPI of DSA prime p;</li>
76 <li>MPI of DSA group order q (q is a prime divisor of p-1);</li>
77 <li>MPI of DSA group generator g;</li>
78 <li>MPI of DSA public key value y (= g**x where x is secret).</li>
79 </ul>
80 <p class="startli">Algorithm Specific Fields for Elgamal public keys:</p><ul>
81 <li>MPI of Elgamal prime p;</li>
82 <li>MPI of Elgamal group generator g;</li>
83 <li>MPI of Elgamal public key value y (= g**x where x is secret). </li>
84 </ul>
85 </li>
86 </ul>
87
88 <p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00646">646</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>
89 </div><h2 class="groupheader">Field Documentation</h2>
90 <a id="ab764c519e8a4c1e89df685930334e3ce"></a>
91 <h2 class="memtitle"><span class="permalink"><a href="#ab764c519e8a4c1e89df685930334e3ce">&#9670;&nbsp;</a></span>pubkey_algo</h2>
92
93 <div class="memitem">
94 <div class="memproto">
95       <table class="memname">
96         <tr>
97           <td class="memname">uint8_t pgpPktKeyV4_s::pubkey_algo</td>
98         </tr>
99       </table>
100 </div><div class="memdoc">
101 <p>public key algorithm. </p>
102
103 <p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00649">649</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>
104
105 </div>
106 </div>
107 <a id="adb0c5a03e0070860f64af4b322d31c8d"></a>
108 <h2 class="memtitle"><span class="permalink"><a href="#adb0c5a03e0070860f64af4b322d31c8d">&#9670;&nbsp;</a></span>time</h2>
109
110 <div class="memitem">
111 <div class="memproto">
112       <table class="memname">
113         <tr>
114           <td class="memname"><a class="el" href="rpmpgp_8h.html#a3f26618361eeb911e1c83947661a4b93">pgpTime_t</a> pgpPktKeyV4_s::time</td>
115         </tr>
116       </table>
117 </div><div class="memdoc">
118 <p>time that the key was created. </p>
119
120 <p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00648">648</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>
121
122 </div>
123 </div>
124 <a id="ae2474cfd7306fc9741f20a2535ab8cde"></a>
125 <h2 class="memtitle"><span class="permalink"><a href="#ae2474cfd7306fc9741f20a2535ab8cde">&#9670;&nbsp;</a></span>version</h2>
126
127 <div class="memitem">
128 <div class="memproto">
129       <table class="memname">
130         <tr>
131           <td class="memname">uint8_t pgpPktKeyV4_s::version</td>
132         </tr>
133       </table>
134 </div><div class="memdoc">
135 <p>version number (4). </p>
136
137 <p class="definition">Definition at line <a class="el" href="rpmpgp_8h_source.html#l00647">647</a> of file <a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a>.</p>
138
139 </div>
140 </div>
141 <hr/>The documentation for this struct was generated from the following file:<ul>
142 <li><a class="el" href="rpmpgp_8h_source.html">rpmpgp.h</a></li>
143 </ul>
144 </div><!-- contents -->
145 <!-- start footer part -->
146 <hr class="footer"/><address class="footer"><small>
147 Generated by &#160;<a href="http://www.doxygen.org/index.html">
148 <img class="footer" src="doxygen.png" alt="doxygen"/>
149 </a> 1.8.13
150 </small></address>
151 </body>
152 </html>