/lib/bouncycastle/docs/org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html

https://bitbucket.org/arkban/somersault · HTML · 463 lines · 386 code · 54 blank · 23 comment · 0 complexity · 8ecdb4c87d99e79784ba7de5d59af90f 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:39 EST 2010 -->
  6. <TITLE>
  7. KeyAgreement (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="KeyAgreement (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/jce/provider/asymmetric/ec/ECUtil.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DH.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../../../../index.html?org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="KeyAgreement.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;<A HREF="#nested_class_summary">NESTED</A>&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.jce.provider.asymmetric.ec</FONT>
  80. <BR>
  81. Class KeyAgreement</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by ">javax.crypto.KeyAgreementSpi
  85. <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement</B>
  86. </PRE>
  87. <DL>
  88. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DH.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DH</A>, <A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DHC.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DHC</A>, <A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DHwithSHA1KDF.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DHwithSHA1KDF</A>, <A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.MQV.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.MQV</A>, <A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.MQVwithSHA1KDF.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.MQVwithSHA1KDF</A></DD>
  89. </DL>
  90. <HR>
  91. <DL>
  92. <DT><PRE>public class <B>KeyAgreement</B><DT>extends javax.crypto.KeyAgreementSpi</DL>
  93. </PRE>
  94. <P>
  95. Diffie-Hellman key agreement using elliptic curve keys, ala IEEE P1363
  96. both the simple one, and the simple one with cofactors are supported.
  97. Also, MQV key agreement per SEC-1
  98. <P>
  99. <P>
  100. <HR>
  101. <P>
  102. <!-- ======== NESTED CLASS SUMMARY ======== -->
  103. <A NAME="nested_class_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Nested Class Summary</B></FONT></TH>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  111. <CODE>static&nbsp;class</CODE></FONT></TD>
  112. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DH.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DH</A></B></CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  118. <CODE>static&nbsp;class</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DHC.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DHC</A></B></CODE>
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>static&nbsp;class</CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DHwithSHA1KDF.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.DHwithSHA1KDF</A></B></CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>static&nbsp;class</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.MQV.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.MQV</A></B></CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  139. <CODE>static&nbsp;class</CODE></FONT></TD>
  140. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.MQVwithSHA1KDF.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec">KeyAgreement.MQVwithSHA1KDF</A></B></CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  143. </TR>
  144. </TABLE>
  145. &nbsp;
  146. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  147. <A NAME="constructor_summary"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  150. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  151. <B>Constructor Summary</B></FONT></TH>
  152. </TR>
  153. <TR BGCOLOR="white" CLASS="TableRowColor">
  154. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  155. <CODE>protected </CODE></FONT></TD>
  156. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#KeyAgreement(java.lang.String, org.bouncycastle.crypto.BasicAgreement, org.bouncycastle.crypto.DerivationFunction)">KeyAgreement</A></B>(java.lang.String&nbsp;kaAlgorithm,
  157. <A HREF="../../../../../../org/bouncycastle/crypto/BasicAgreement.html" title="interface in org.bouncycastle.crypto">BasicAgreement</A>&nbsp;agreement,
  158. <A HREF="../../../../../../org/bouncycastle/crypto/DerivationFunction.html" title="interface in org.bouncycastle.crypto">DerivationFunction</A>&nbsp;kdf)</CODE>
  159. <BR>
  160. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  161. </TR>
  162. </TABLE>
  163. &nbsp;
  164. <!-- ========== METHOD SUMMARY =========== -->
  165. <A NAME="method_summary"><!-- --></A>
  166. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  167. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  168. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  169. <B>Method Summary</B></FONT></TH>
  170. </TR>
  171. <TR BGCOLOR="white" CLASS="TableRowColor">
  172. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  173. <CODE>protected &nbsp;java.security.Key</CODE></FONT></TD>
  174. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineDoPhase(java.security.Key, boolean)">engineDoPhase</A></B>(java.security.Key&nbsp;key,
  175. boolean&nbsp;lastPhase)</CODE>
  176. <BR>
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  178. </TR>
  179. <TR BGCOLOR="white" CLASS="TableRowColor">
  180. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  181. <CODE>protected &nbsp;byte[]</CODE></FONT></TD>
  182. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineGenerateSecret()">engineGenerateSecret</A></B>()</CODE>
  183. <BR>
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  185. </TR>
  186. <TR BGCOLOR="white" CLASS="TableRowColor">
  187. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  188. <CODE>protected &nbsp;int</CODE></FONT></TD>
  189. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineGenerateSecret(byte[], int)">engineGenerateSecret</A></B>(byte[]&nbsp;sharedSecret,
  190. int&nbsp;offset)</CODE>
  191. <BR>
  192. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  193. </TR>
  194. <TR BGCOLOR="white" CLASS="TableRowColor">
  195. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  196. <CODE>protected &nbsp;javax.crypto.SecretKey</CODE></FONT></TD>
  197. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineGenerateSecret(java.lang.String)">engineGenerateSecret</A></B>(java.lang.String&nbsp;algorithm)</CODE>
  198. <BR>
  199. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  200. </TR>
  201. <TR BGCOLOR="white" CLASS="TableRowColor">
  202. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  203. <CODE>protected &nbsp;void</CODE></FONT></TD>
  204. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom)">engineInit</A></B>(java.security.Key&nbsp;key,
  205. java.security.spec.AlgorithmParameterSpec&nbsp;params,
  206. java.security.SecureRandom&nbsp;random)</CODE>
  207. <BR>
  208. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  212. <CODE>protected &nbsp;void</CODE></FONT></TD>
  213. <TD><CODE><B><A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html#engineInit(java.security.Key, java.security.SecureRandom)">engineInit</A></B>(java.security.Key&nbsp;key,
  214. java.security.SecureRandom&nbsp;random)</CODE>
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  217. </TR>
  218. </TABLE>
  219. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  220. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  221. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  222. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  223. </TR>
  224. <TR BGCOLOR="white" CLASS="TableRowColor">
  225. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  226. </TR>
  227. </TABLE>
  228. &nbsp;
  229. <P>
  230. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  231. <A NAME="constructor_detail"><!-- --></A>
  232. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  233. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  234. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  235. <B>Constructor Detail</B></FONT></TH>
  236. </TR>
  237. </TABLE>
  238. <A NAME="KeyAgreement(java.lang.String, org.bouncycastle.crypto.BasicAgreement, org.bouncycastle.crypto.DerivationFunction)"><!-- --></A><H3>
  239. KeyAgreement</H3>
  240. <PRE>
  241. protected <B>KeyAgreement</B>(java.lang.String&nbsp;kaAlgorithm,
  242. <A HREF="../../../../../../org/bouncycastle/crypto/BasicAgreement.html" title="interface in org.bouncycastle.crypto">BasicAgreement</A>&nbsp;agreement,
  243. <A HREF="../../../../../../org/bouncycastle/crypto/DerivationFunction.html" title="interface in org.bouncycastle.crypto">DerivationFunction</A>&nbsp;kdf)</PRE>
  244. <DL>
  245. </DL>
  246. <!-- ============ METHOD DETAIL ========== -->
  247. <A NAME="method_detail"><!-- --></A>
  248. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  249. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  250. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  251. <B>Method Detail</B></FONT></TH>
  252. </TR>
  253. </TABLE>
  254. <A NAME="engineDoPhase(java.security.Key, boolean)"><!-- --></A><H3>
  255. engineDoPhase</H3>
  256. <PRE>
  257. protected java.security.Key <B>engineDoPhase</B>(java.security.Key&nbsp;key,
  258. boolean&nbsp;lastPhase)
  259. throws java.security.InvalidKeyException,
  260. java.lang.IllegalStateException</PRE>
  261. <DL>
  262. <DD><DL>
  263. <DT><B>Specified by:</B><DD><CODE>engineDoPhase</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  264. </DD>
  265. <DD><DL>
  266. <DT><B>Throws:</B>
  267. <DD><CODE>java.security.InvalidKeyException</CODE>
  268. <DD><CODE>java.lang.IllegalStateException</CODE></DL>
  269. </DD>
  270. </DL>
  271. <HR>
  272. <A NAME="engineGenerateSecret()"><!-- --></A><H3>
  273. engineGenerateSecret</H3>
  274. <PRE>
  275. protected byte[] <B>engineGenerateSecret</B>()
  276. throws java.lang.IllegalStateException</PRE>
  277. <DL>
  278. <DD><DL>
  279. <DT><B>Specified by:</B><DD><CODE>engineGenerateSecret</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  280. </DD>
  281. <DD><DL>
  282. <DT><B>Throws:</B>
  283. <DD><CODE>java.lang.IllegalStateException</CODE></DL>
  284. </DD>
  285. </DL>
  286. <HR>
  287. <A NAME="engineGenerateSecret(byte[], int)"><!-- --></A><H3>
  288. engineGenerateSecret</H3>
  289. <PRE>
  290. protected int <B>engineGenerateSecret</B>(byte[]&nbsp;sharedSecret,
  291. int&nbsp;offset)
  292. throws java.lang.IllegalStateException,
  293. javax.crypto.ShortBufferException</PRE>
  294. <DL>
  295. <DD><DL>
  296. <DT><B>Specified by:</B><DD><CODE>engineGenerateSecret</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  297. </DD>
  298. <DD><DL>
  299. <DT><B>Throws:</B>
  300. <DD><CODE>java.lang.IllegalStateException</CODE>
  301. <DD><CODE>javax.crypto.ShortBufferException</CODE></DL>
  302. </DD>
  303. </DL>
  304. <HR>
  305. <A NAME="engineGenerateSecret(java.lang.String)"><!-- --></A><H3>
  306. engineGenerateSecret</H3>
  307. <PRE>
  308. protected javax.crypto.SecretKey <B>engineGenerateSecret</B>(java.lang.String&nbsp;algorithm)
  309. throws java.security.NoSuchAlgorithmException</PRE>
  310. <DL>
  311. <DD><DL>
  312. <DT><B>Specified by:</B><DD><CODE>engineGenerateSecret</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  313. </DD>
  314. <DD><DL>
  315. <DT><B>Throws:</B>
  316. <DD><CODE>java.security.NoSuchAlgorithmException</CODE></DL>
  317. </DD>
  318. </DL>
  319. <HR>
  320. <A NAME="engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom)"><!-- --></A><H3>
  321. engineInit</H3>
  322. <PRE>
  323. protected void <B>engineInit</B>(java.security.Key&nbsp;key,
  324. java.security.spec.AlgorithmParameterSpec&nbsp;params,
  325. java.security.SecureRandom&nbsp;random)
  326. throws java.security.InvalidKeyException,
  327. java.security.InvalidAlgorithmParameterException</PRE>
  328. <DL>
  329. <DD><DL>
  330. <DT><B>Specified by:</B><DD><CODE>engineInit</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  331. </DD>
  332. <DD><DL>
  333. <DT><B>Throws:</B>
  334. <DD><CODE>java.security.InvalidKeyException</CODE>
  335. <DD><CODE>java.security.InvalidAlgorithmParameterException</CODE></DL>
  336. </DD>
  337. </DL>
  338. <HR>
  339. <A NAME="engineInit(java.security.Key, java.security.SecureRandom)"><!-- --></A><H3>
  340. engineInit</H3>
  341. <PRE>
  342. protected void <B>engineInit</B>(java.security.Key&nbsp;key,
  343. java.security.SecureRandom&nbsp;random)
  344. throws java.security.InvalidKeyException</PRE>
  345. <DL>
  346. <DD><DL>
  347. <DT><B>Specified by:</B><DD><CODE>engineInit</CODE> in class <CODE>javax.crypto.KeyAgreementSpi</CODE></DL>
  348. </DD>
  349. <DD><DL>
  350. <DT><B>Throws:</B>
  351. <DD><CODE>java.security.InvalidKeyException</CODE></DL>
  352. </DD>
  353. </DL>
  354. <!-- ========= END OF CLASS DATA ========= -->
  355. <HR>
  356. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  357. <A NAME="navbar_bottom"><!-- --></A>
  358. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  359. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  360. <TR>
  361. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  362. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  363. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  364. <TR ALIGN="center" VALIGN="top">
  365. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  366. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  367. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  368. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  369. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  370. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  371. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  372. </TR>
  373. </TABLE>
  374. </TD>
  375. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  376. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  377. </TD>
  378. </TR>
  379. <TR>
  380. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  381. &nbsp;<A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/ECUtil.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec"><B>PREV CLASS</B></A>&nbsp;
  382. &nbsp;<A HREF="../../../../../../org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.DH.html" title="class in org.bouncycastle.jce.provider.asymmetric.ec"><B>NEXT CLASS</B></A></FONT></TD>
  383. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  384. <A HREF="../../../../../../index.html?org/bouncycastle/jce/provider/asymmetric/ec/KeyAgreement.html" target="_top"><B>FRAMES</B></A> &nbsp;
  385. &nbsp;<A HREF="KeyAgreement.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  386. &nbsp;<SCRIPT type="text/javascript">
  387. <!--
  388. if(window==top) {
  389. document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  390. }
  391. //-->
  392. </SCRIPT>
  393. <NOSCRIPT>
  394. <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  395. </NOSCRIPT>
  396. </FONT></TD>
  397. </TR>
  398. <TR>
  399. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  400. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  401. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  402. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  403. </TR>
  404. </TABLE>
  405. <A NAME="skip-navbar_bottom"></A>
  406. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  407. <HR>
  408. </BODY>
  409. </HTML>