/lib/bouncycastle/docs/org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.html

https://bitbucket.org/arkban/somersault · HTML · 312 lines · 255 code · 35 blank · 22 comment · 0 complexity · 1665e661421ba040a8d1728114b3672a MD5 · raw file

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