~ubuntu-branches/ubuntu/wily/qca2/wily-proposed

« back to all changes in this revision

Viewing changes to qca/apidocs/html/classQCA_1_1RSAPrivateKey.html

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2007-10-27 18:51:54 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071027185154-4ir9ys3h2q9fofrw
Tags: 2.0.0-2
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
 
<title>Qt Cryptographic Architecture: QCA::RSAPrivateKey Class Reference</title>
4
 
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
 
<link href="tabs.css" rel="stylesheet" type="text/css">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.4.6 -->
8
 
<div class="tabs">
9
 
  <ul>
10
 
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11
 
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12
 
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
13
 
    <li><a href="files.html"><span>Files</span></a></li>
14
 
    <li><a href="dirs.html"><span>Directories</span></a></li>
15
 
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16
 
    <li><a href="examples.html"><span>Examples</span></a></li>
17
 
  </ul></div>
18
 
<div class="tabs">
19
 
  <ul>
20
 
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
21
 
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22
 
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23
 
  </ul></div>
24
 
<div class="nav">
25
 
<a class="el" href="namespaceQCA.html">QCA</a>::<a class="el" href="classQCA_1_1RSAPrivateKey.html">RSAPrivateKey</a></div>
26
 
<h1>QCA::RSAPrivateKey Class Reference</h1><!-- doxytag: class="QCA::RSAPrivateKey" --><!-- doxytag: inherits="QCA::PrivateKey" -->RSA Private Key.  
27
 
<a href="#_details">More...</a>
28
 
<p>
29
 
<code>#include &lt;<a class="el" href="qca__publickey_8h-source.html">QtCrypto</a>&gt;</code>
30
 
<p>
31
 
<p>Inheritance diagram for QCA::RSAPrivateKey:
32
 
<p><center><img src="classQCA_1_1RSAPrivateKey.png" usemap="#QCA::RSAPrivateKey_map" border="0" alt=""></center>
33
 
<map name="QCA::RSAPrivateKey_map">
34
 
<area href="classQCA_1_1PrivateKey.html" alt="QCA::PrivateKey" shape="rect" coords="0,112,133,136">
35
 
<area href="classQCA_1_1PKey.html" alt="QCA::PKey" shape="rect" coords="0,56,133,80">
36
 
<area href="classQCA_1_1Algorithm.html" alt="QCA::Algorithm" shape="rect" coords="0,0,133,24">
37
 
</map>
38
 
Collaboration diagram for QCA::RSAPrivateKey:<p><center><img src="classQCA_1_1RSAPrivateKey__coll__graph.png" border="0" usemap="#QCA_1_1RSAPrivateKey__coll__map" alt="Collaboration graph"></center>
39
 
<map name="QCA_1_1RSAPrivateKey__coll__map">
40
 
<area href="classQCA_1_1PrivateKey.html" shape="rect" coords="145,268,265,292" alt="">
41
 
<area href="classQCA_1_1PKey.html" shape="rect" coords="93,190,181,214" alt="">
42
 
<area href="classQCA_1_1Algorithm.html" shape="rect" coords="54,100,169,124" alt="">
43
 
<area doxygen="qt.tag:" href="qshareddatapointer.html" shape="rect" coords="8,9,216,33" alt="">
44
 
</map>
45
 
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classQCA_1_1RSAPrivateKey-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
46
 
<tr><td></td></tr>
47
 
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
48
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#00dc97bdeb521f42325f3e13935c3e35">RSAPrivateKey</a> ()</td></tr>
49
 
 
50
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#f5ab9fe46f64af615a6f44d3098e8e59">RSAPrivateKey</a> (const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;n, const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;e, const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;p, const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;q, const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;d, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;provider=<a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>())</td></tr>
51
 
 
52
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#11924ddd8b2594472a2e9c7b19cbf74c">n</a> () const </td></tr>
53
 
 
54
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#d0b0937a56470b5979569a76bdd2cba1">e</a> () const </td></tr>
55
 
 
56
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#c30ffd0bbb72d73d40e9c8a2ac41e3f0">p</a> () const </td></tr>
57
 
 
58
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#5f5569279ef3f4a33e0b67eb742c15e2">q</a> () const </td></tr>
59
 
 
60
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCA_1_1RSAPrivateKey.html#8e65a4747d1089f11a4108ac486279f6">d</a> () const </td></tr>
61
 
 
62
 
</table>
63
 
<hr><a name="_details"></a><h2>Detailed Description</h2>
64
 
RSA Private Key. 
65
 
<p>
66
 
<hr><h2>Constructor &amp; Destructor Documentation</h2>
67
 
<a class="anchor" name="00dc97bdeb521f42325f3e13935c3e35"></a><!-- doxytag: member="QCA::RSAPrivateKey::RSAPrivateKey" ref="00dc97bdeb521f42325f3e13935c3e35" args="()" --><p>
68
 
<table class="mdTable" cellpadding="2" cellspacing="0">
69
 
  <tr>
70
 
    <td class="mdRow">
71
 
      <table cellpadding="0" cellspacing="0" border="0">
72
 
        <tr>
73
 
          <td class="md" nowrap valign="top">QCA::RSAPrivateKey::RSAPrivateKey           </td>
74
 
          <td class="md" valign="top">(&nbsp;</td>
75
 
          <td class="mdname1" valign="top" nowrap>          </td>
76
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
77
 
          <td class="md" nowrap></td>
78
 
        </tr>
79
 
      </table>
80
 
    </td>
81
 
  </tr>
82
 
</table>
83
 
<table cellspacing="5" cellpadding="0" border="0">
84
 
  <tr>
85
 
    <td>
86
 
      &nbsp;
87
 
    </td>
88
 
    <td>
89
 
 
90
 
<p>
91
 
Generate an empty RSA private key. 
92
 
<p>
93
 
    </td>
94
 
  </tr>
95
 
</table>
96
 
<a class="anchor" name="f5ab9fe46f64af615a6f44d3098e8e59"></a><!-- doxytag: member="QCA::RSAPrivateKey::RSAPrivateKey" ref="f5ab9fe46f64af615a6f44d3098e8e59" args="(const BigInteger &amp;n, const BigInteger &amp;e, const BigInteger &amp;p, const BigInteger &amp;q, const BigInteger &amp;d, const QString &amp;provider=QString())" --><p>
97
 
<table class="mdTable" cellpadding="2" cellspacing="0">
98
 
  <tr>
99
 
    <td class="mdRow">
100
 
      <table cellpadding="0" cellspacing="0" border="0">
101
 
        <tr>
102
 
          <td class="md" nowrap valign="top">QCA::RSAPrivateKey::RSAPrivateKey           </td>
103
 
          <td class="md" valign="top">(&nbsp;</td>
104
 
          <td class="md" nowrap valign="top">const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;&nbsp;</td>
105
 
          <td class="mdname" nowrap> <em>n</em>, </td>
106
 
        </tr>
107
 
        <tr>
108
 
          <td class="md" nowrap align="right"></td>
109
 
          <td class="md"></td>
110
 
          <td class="md" nowrap>const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;&nbsp;</td>
111
 
          <td class="mdname" nowrap> <em>e</em>, </td>
112
 
        </tr>
113
 
        <tr>
114
 
          <td class="md" nowrap align="right"></td>
115
 
          <td class="md"></td>
116
 
          <td class="md" nowrap>const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;&nbsp;</td>
117
 
          <td class="mdname" nowrap> <em>p</em>, </td>
118
 
        </tr>
119
 
        <tr>
120
 
          <td class="md" nowrap align="right"></td>
121
 
          <td class="md"></td>
122
 
          <td class="md" nowrap>const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;&nbsp;</td>
123
 
          <td class="mdname" nowrap> <em>q</em>, </td>
124
 
        </tr>
125
 
        <tr>
126
 
          <td class="md" nowrap align="right"></td>
127
 
          <td class="md"></td>
128
 
          <td class="md" nowrap>const <a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> &amp;&nbsp;</td>
129
 
          <td class="mdname" nowrap> <em>d</em>, </td>
130
 
        </tr>
131
 
        <tr>
132
 
          <td class="md" nowrap align="right"></td>
133
 
          <td class="md"></td>
134
 
          <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
135
 
          <td class="mdname" nowrap> <em>provider</em> = <code><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>()</code></td>
136
 
        </tr>
137
 
        <tr>
138
 
          <td class="md"></td>
139
 
          <td class="md">)&nbsp;</td>
140
 
          <td class="md" colspan="2"></td>
141
 
        </tr>
142
 
      </table>
143
 
    </td>
144
 
  </tr>
145
 
</table>
146
 
<table cellspacing="5" cellpadding="0" border="0">
147
 
  <tr>
148
 
    <td>
149
 
      &nbsp;
150
 
    </td>
151
 
    <td>
152
 
 
153
 
<p>
154
 
Generate an RSA private key from specified parameters. 
155
 
<p>
156
 
<dl compact><dt><b>Parameters:</b></dt><dd>
157
 
  <table border="0" cellspacing="2" cellpadding="0">
158
 
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>the public key value </td></tr>
159
 
    <tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>the public key exponent </td></tr>
160
 
    <tr><td valign="top"></td><td valign="top"><em>p</em>&nbsp;</td><td>one of the two chosen primes </td></tr>
161
 
    <tr><td valign="top"></td><td valign="top"><em>q</em>&nbsp;</td><td>the other of the two chosen primes </td></tr>
162
 
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>inverse of the exponent, modulo (p-1)(q-1) </td></tr>
163
 
    <tr><td valign="top"></td><td valign="top"><em>provider</em>&nbsp;</td><td>the provider to use, if a particular provider is required </td></tr>
164
 
  </table>
165
 
</dl>
166
 
    </td>
167
 
  </tr>
168
 
</table>
169
 
<hr><h2>Member Function Documentation</h2>
170
 
<a class="anchor" name="11924ddd8b2594472a2e9c7b19cbf74c"></a><!-- doxytag: member="QCA::RSAPrivateKey::n" ref="11924ddd8b2594472a2e9c7b19cbf74c" args="() const " --><p>
171
 
<table class="mdTable" cellpadding="2" cellspacing="0">
172
 
  <tr>
173
 
    <td class="mdRow">
174
 
      <table cellpadding="0" cellspacing="0" border="0">
175
 
        <tr>
176
 
          <td class="md" nowrap valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> QCA::RSAPrivateKey::n           </td>
177
 
          <td class="md" valign="top">(&nbsp;</td>
178
 
          <td class="mdname1" valign="top" nowrap>          </td>
179
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
180
 
          <td class="md" nowrap> const</td>
181
 
        </tr>
182
 
      </table>
183
 
    </td>
184
 
  </tr>
185
 
</table>
186
 
<table cellspacing="5" cellpadding="0" border="0">
187
 
  <tr>
188
 
    <td>
189
 
      &nbsp;
190
 
    </td>
191
 
    <td>
192
 
 
193
 
<p>
194
 
The public key value. 
195
 
<p>
196
 
This value is the actual public key value (the product of p and q, the random prime numbers used to generate the RSA key), also known as the public modulus.     </td>
197
 
  </tr>
198
 
</table>
199
 
<a class="anchor" name="d0b0937a56470b5979569a76bdd2cba1"></a><!-- doxytag: member="QCA::RSAPrivateKey::e" ref="d0b0937a56470b5979569a76bdd2cba1" args="() const " --><p>
200
 
<table class="mdTable" cellpadding="2" cellspacing="0">
201
 
  <tr>
202
 
    <td class="mdRow">
203
 
      <table cellpadding="0" cellspacing="0" border="0">
204
 
        <tr>
205
 
          <td class="md" nowrap valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> QCA::RSAPrivateKey::e           </td>
206
 
          <td class="md" valign="top">(&nbsp;</td>
207
 
          <td class="mdname1" valign="top" nowrap>          </td>
208
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
209
 
          <td class="md" nowrap> const</td>
210
 
        </tr>
211
 
      </table>
212
 
    </td>
213
 
  </tr>
214
 
</table>
215
 
<table cellspacing="5" cellpadding="0" border="0">
216
 
  <tr>
217
 
    <td>
218
 
      &nbsp;
219
 
    </td>
220
 
    <td>
221
 
 
222
 
<p>
223
 
The public key exponent. 
224
 
<p>
225
 
This value is the exponent chosen in the original key generator step     </td>
226
 
  </tr>
227
 
</table>
228
 
<a class="anchor" name="c30ffd0bbb72d73d40e9c8a2ac41e3f0"></a><!-- doxytag: member="QCA::RSAPrivateKey::p" ref="c30ffd0bbb72d73d40e9c8a2ac41e3f0" args="() const " --><p>
229
 
<table class="mdTable" cellpadding="2" cellspacing="0">
230
 
  <tr>
231
 
    <td class="mdRow">
232
 
      <table cellpadding="0" cellspacing="0" border="0">
233
 
        <tr>
234
 
          <td class="md" nowrap valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> QCA::RSAPrivateKey::p           </td>
235
 
          <td class="md" valign="top">(&nbsp;</td>
236
 
          <td class="mdname1" valign="top" nowrap>          </td>
237
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
238
 
          <td class="md" nowrap> const</td>
239
 
        </tr>
240
 
      </table>
241
 
    </td>
242
 
  </tr>
243
 
</table>
244
 
<table cellspacing="5" cellpadding="0" border="0">
245
 
  <tr>
246
 
    <td>
247
 
      &nbsp;
248
 
    </td>
249
 
    <td>
250
 
 
251
 
<p>
252
 
One of the two random primes used to generate the private key. 
253
 
<p>
254
 
    </td>
255
 
  </tr>
256
 
</table>
257
 
<a class="anchor" name="5f5569279ef3f4a33e0b67eb742c15e2"></a><!-- doxytag: member="QCA::RSAPrivateKey::q" ref="5f5569279ef3f4a33e0b67eb742c15e2" args="() const " --><p>
258
 
<table class="mdTable" cellpadding="2" cellspacing="0">
259
 
  <tr>
260
 
    <td class="mdRow">
261
 
      <table cellpadding="0" cellspacing="0" border="0">
262
 
        <tr>
263
 
          <td class="md" nowrap valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> QCA::RSAPrivateKey::q           </td>
264
 
          <td class="md" valign="top">(&nbsp;</td>
265
 
          <td class="mdname1" valign="top" nowrap>          </td>
266
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
267
 
          <td class="md" nowrap> const</td>
268
 
        </tr>
269
 
      </table>
270
 
    </td>
271
 
  </tr>
272
 
</table>
273
 
<table cellspacing="5" cellpadding="0" border="0">
274
 
  <tr>
275
 
    <td>
276
 
      &nbsp;
277
 
    </td>
278
 
    <td>
279
 
 
280
 
<p>
281
 
The second of the two random primes used to generate the private key. 
282
 
<p>
283
 
    </td>
284
 
  </tr>
285
 
</table>
286
 
<a class="anchor" name="8e65a4747d1089f11a4108ac486279f6"></a><!-- doxytag: member="QCA::RSAPrivateKey::d" ref="8e65a4747d1089f11a4108ac486279f6" args="() const " --><p>
287
 
<table class="mdTable" cellpadding="2" cellspacing="0">
288
 
  <tr>
289
 
    <td class="mdRow">
290
 
      <table cellpadding="0" cellspacing="0" border="0">
291
 
        <tr>
292
 
          <td class="md" nowrap valign="top"><a class="el" href="classQCA_1_1BigInteger.html">BigInteger</a> QCA::RSAPrivateKey::d           </td>
293
 
          <td class="md" valign="top">(&nbsp;</td>
294
 
          <td class="mdname1" valign="top" nowrap>          </td>
295
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
296
 
          <td class="md" nowrap> const</td>
297
 
        </tr>
298
 
      </table>
299
 
    </td>
300
 
  </tr>
301
 
</table>
302
 
<table cellspacing="5" cellpadding="0" border="0">
303
 
  <tr>
304
 
    <td>
305
 
      &nbsp;
306
 
    </td>
307
 
    <td>
308
 
 
309
 
<p>
310
 
The inverse of the exponent, module (p-1)(q-1). 
311
 
<p>
312
 
    </td>
313
 
  </tr>
314
 
</table>
315
 
<hr>The documentation for this class was generated from the following file:<ul>
316
 
<li><a class="el" href="qca__publickey_8h-source.html">qca_publickey.h</a></ul>
317
 
<hr size="1"><address style="align: right;"><small>Generated on Fri Jul 6 13:24:05 2007 for Qt Cryptographic Architecture by&nbsp;
318
 
<a href="http://www.doxygen.org/index.html">
319
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
320
 
</body>
321
 
</html>