/lib/bouncycastle/docs/org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html
HTML | 312 lines | 255 code | 35 blank | 22 comment | 0 complexity | 1665e661421ba040a8d1728114b3672a MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0) on Mon Jan 11 13:46:36 EST 2010 -->
6<TITLE>
7NaccacheSternPrivateKeyParameters (Bouncy Castle Library 1.45 API Specification)
8</TITLE>
9
10<META NAME="date" CONTENT="2010-01-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="NaccacheSternPrivateKeyParameters (Bouncy Castle Library 1.45 API Specification)";
19 }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51<b>Bouncy Castle Cryptography Library 1.45</b></EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html" title="class in org.bouncycastle.crypto.params"><B>PREV CLASS</B></A>
58 <A HREF="../../../../org/bouncycastle/crypto/params/ParametersWithIV.html" title="class in org.bouncycastle.crypto.params"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../../../index.html?org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="NaccacheSternPrivateKeyParameters.html" target="_top"><B>NO FRAMES</B></A>
62 <SCRIPT type="text/javascript">
63 <!--
64 if(window==top) {
65 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66 }
67 //-->
68</SCRIPT>
69<NOSCRIPT>
70 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90org.bouncycastle.crypto.params</FONT>
91<BR>
92Class NaccacheSternPrivateKeyParameters</H2>
93<PRE>
94java.lang.Object
95 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/bouncycastle/crypto/params/AsymmetricKeyParameter.html" title="class in org.bouncycastle.crypto.params">org.bouncycastle.crypto.params.AsymmetricKeyParameter</A>
96 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html" title="class in org.bouncycastle.crypto.params">org.bouncycastle.crypto.params.NaccacheSternKeyParameters</A>
97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.crypto.params.NaccacheSternPrivateKeyParameters</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>NaccacheSternPrivateKeyParameters</B><DT>extends <A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html" title="class in org.bouncycastle.crypto.params">NaccacheSternKeyParameters</A></DL>
105</PRE>
106
107<P>
108Private key parameters for NaccacheStern cipher. For details on this cipher,
109 please see
110
111 http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
112<P>
113
114<P>
115<HR>
116
117<P>
118
119<!-- ======== CONSTRUCTOR SUMMARY ======== -->
120
121<A NAME="constructor_summary"><!-- --></A>
122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
123<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
124<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
125<B>Constructor Summary</B></FONT></TH>
126</TR>
127<TR BGCOLOR="white" CLASS="TableRowColor">
128<TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html#NaccacheSternPrivateKeyParameters(java.math.BigInteger, java.math.BigInteger, int, java.util.Vector, java.math.BigInteger)">NaccacheSternPrivateKeyParameters</A></B>(java.math.BigInteger g,
129 java.math.BigInteger n,
130 int lowerSigmaBound,
131 java.util.Vector smallPrimes,
132 java.math.BigInteger phi_n)</CODE>
133
134<BR>
135 Constructs a NaccacheSternPrivateKey</TD>
136</TR>
137</TABLE>
138
139<!-- ========== METHOD SUMMARY =========== -->
140
141<A NAME="method_summary"><!-- --></A>
142<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
145<B>Method Summary</B></FONT></TH>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149<CODE> java.math.BigInteger</CODE></FONT></TD>
150<TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html#getPhi_n()">getPhi_n</A></B>()</CODE>
151
152<BR>
153 </TD>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157<CODE> java.util.Vector</CODE></FONT></TD>
158<TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html#getSmallPrimes()">getSmallPrimes</A></B>()</CODE>
159
160<BR>
161 </TD>
162</TR>
163</TABLE>
164 <A NAME="methods_inherited_from_class_org.bouncycastle.crypto.params.NaccacheSternKeyParameters"><!-- --></A>
165<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
167<TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.crypto.params.<A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html" title="class in org.bouncycastle.crypto.params">NaccacheSternKeyParameters</A></B></TH>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD><CODE><A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html#getG()">getG</A>, <A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html#getLowerSigmaBound()">getLowerSigmaBound</A>, <A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html#getModulus()">getModulus</A></CODE></TD>
171</TR>
172</TABLE>
173 <A NAME="methods_inherited_from_class_org.bouncycastle.crypto.params.AsymmetricKeyParameter"><!-- --></A>
174<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
176<TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.crypto.params.<A HREF="../../../../org/bouncycastle/crypto/params/AsymmetricKeyParameter.html" title="class in org.bouncycastle.crypto.params">AsymmetricKeyParameter</A></B></TH>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD><CODE><A HREF="../../../../org/bouncycastle/crypto/params/AsymmetricKeyParameter.html#isPrivate()">isPrivate</A></CODE></TD>
180</TR>
181</TABLE>
182 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
183<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
185<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
189</TR>
190</TABLE>
191
192<P>
193
194<!-- ========= CONSTRUCTOR DETAIL ======== -->
195
196<A NAME="constructor_detail"><!-- --></A>
197<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
200<B>Constructor Detail</B></FONT></TH>
201</TR>
202</TABLE>
203
204<A NAME="NaccacheSternPrivateKeyParameters(java.math.BigInteger, java.math.BigInteger, int, java.util.Vector, java.math.BigInteger)"><!-- --></A><H3>
205NaccacheSternPrivateKeyParameters</H3>
206<PRE>
207public <B>NaccacheSternPrivateKeyParameters</B>(java.math.BigInteger g,
208 java.math.BigInteger n,
209 int lowerSigmaBound,
210 java.util.Vector smallPrimes,
211 java.math.BigInteger phi_n)</PRE>
212<DL>
213<DD>Constructs a NaccacheSternPrivateKey
214<P>
215<DL>
216<DT><B>Parameters:</B><DD><CODE>g</CODE> - the public enryption parameter g<DD><CODE>n</CODE> - the public modulus n = p*q<DD><CODE>lowerSigmaBound</CODE> - the public lower sigma bound up to which data can be encrypted<DD><CODE>smallPrimes</CODE> - the small primes, of which sigma is constructed in the right
217 order<DD><CODE>phi_n</CODE> - the private modulus phi(n) = (p-1)(q-1)</DL>
218</DL>
219
220<!-- ============ METHOD DETAIL ========== -->
221
222<A NAME="method_detail"><!-- --></A>
223<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
224<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
225<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
226<B>Method Detail</B></FONT></TH>
227</TR>
228</TABLE>
229
230<A NAME="getPhi_n()"><!-- --></A><H3>
231getPhi_n</H3>
232<PRE>
233public java.math.BigInteger <B>getPhi_n</B>()</PRE>
234<DL>
235<DD><DL>
236</DL>
237</DD>
238</DL>
239<HR>
240
241<A NAME="getSmallPrimes()"><!-- --></A><H3>
242getSmallPrimes</H3>
243<PRE>
244public java.util.Vector <B>getSmallPrimes</B>()</PRE>
245<DL>
246<DD><DL>
247</DL>
248</DD>
249</DL>
250<!-- ========= END OF CLASS DATA ========= -->
251<HR>
252
253
254<!-- ======= START OF BOTTOM NAVBAR ====== -->
255<A NAME="navbar_bottom"><!-- --></A>
256<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
257<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
258<TR>
259<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
260<A NAME="navbar_bottom_firstrow"><!-- --></A>
261<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
262 <TR ALIGN="center" VALIGN="top">
263 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
264 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
265 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
266 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
267 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
268 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
269 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
270 </TR>
271</TABLE>
272</TD>
273<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
274<b>Bouncy Castle Cryptography Library 1.45</b></EM>
275</TD>
276</TR>
277
278<TR>
279<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
280 <A HREF="../../../../org/bouncycastle/crypto/params/NaccacheSternKeyParameters.html" title="class in org.bouncycastle.crypto.params"><B>PREV CLASS</B></A>
281 <A HREF="../../../../org/bouncycastle/crypto/params/ParametersWithIV.html" title="class in org.bouncycastle.crypto.params"><B>NEXT CLASS</B></A></FONT></TD>
282<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
283 <A HREF="../../../../index.html?org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html" target="_top"><B>FRAMES</B></A>
284 <A HREF="NaccacheSternPrivateKeyParameters.html" target="_top"><B>NO FRAMES</B></A>
285 <SCRIPT type="text/javascript">
286 <!--
287 if(window==top) {
288 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
289 }
290 //-->
291</SCRIPT>
292<NOSCRIPT>
293 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
294</NOSCRIPT>
295
296
297</FONT></TD>
298</TR>
299<TR>
300<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
301 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
302<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
303DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
304</TR>
305</TABLE>
306<A NAME="skip-navbar_bottom"></A>
307<!-- ======== END OF BOTTOM NAVBAR ======= -->
308
309<HR>
310
311</BODY>
312</HTML>