PageRenderTime 591ms CodeModel.GetById 52ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/bouncycastle/docs/org/bouncycastle/jce/provider/test/IESTest.html

https://bitbucket.org/arkban/somersault
HTML | 333 lines | 275 code | 38 blank | 20 comment | 0 complexity | 94192fe4b4512beaa7afbe1e5c1a484a 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:40 EST 2010 -->
  6. <TITLE>
  7. IESTest (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="IESTest (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/test/HMacTest.html" title="class in org.bouncycastle.jce.provider.test"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../../org/bouncycastle/jce/provider/test/ImplicitlyCaTest.html" title="class in org.bouncycastle.jce.provider.test"><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/test/IESTest.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="IESTest.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;CONSTR&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;CONSTR&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.test</FONT>
  80. <BR>
  81. Class IESTest</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html" title="class in org.bouncycastle.util.test">org.bouncycastle.util.test.SimpleTest</A>
  85. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.jce.provider.test.IESTest</B>
  86. </PRE>
  87. <DL>
  88. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/bouncycastle/util/test/Test.html" title="interface in org.bouncycastle.util.test">Test</A></DD>
  89. </DL>
  90. <HR>
  91. <DL>
  92. <DT><PRE>public class <B>IESTest</B><DT>extends <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html" title="class in org.bouncycastle.util.test">SimpleTest</A></DL>
  93. </PRE>
  94. <P>
  95. test for ECIES - Elliptic Curve Integrated Encryption Scheme
  96. <P>
  97. <P>
  98. <HR>
  99. <P>
  100. <!-- ========== METHOD SUMMARY =========== -->
  101. <A NAME="method_summary"><!-- --></A>
  102. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  103. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  104. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  105. <B>Method Summary</B></FONT></TH>
  106. </TR>
  107. <TR BGCOLOR="white" CLASS="TableRowColor">
  108. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  109. <CODE>&nbsp;void</CODE></FONT></TD>
  110. <TD><CODE><B><A HREF="../../../../../org/bouncycastle/jce/provider/test/IESTest.html#doDefTest(java.security.KeyPairGenerator, javax.crypto.Cipher, javax.crypto.Cipher)">doDefTest</A></B>(java.security.KeyPairGenerator&nbsp;g,
  111. javax.crypto.Cipher&nbsp;c1,
  112. javax.crypto.Cipher&nbsp;c2)</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>&nbsp;void</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../../../org/bouncycastle/jce/provider/test/IESTest.html#doTest(java.security.KeyPairGenerator, javax.crypto.Cipher, javax.crypto.Cipher)">doTest</A></B>(java.security.KeyPairGenerator&nbsp;g,
  120. javax.crypto.Cipher&nbsp;c1,
  121. javax.crypto.Cipher&nbsp;c2)</CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  127. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  128. <TD><CODE><B><A HREF="../../../../../org/bouncycastle/jce/provider/test/IESTest.html#getName()">getName</A></B>()</CODE>
  129. <BR>
  130. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  131. </TR>
  132. <TR BGCOLOR="white" CLASS="TableRowColor">
  133. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  134. <CODE>static&nbsp;void</CODE></FONT></TD>
  135. <TD><CODE><B><A HREF="../../../../../org/bouncycastle/jce/provider/test/IESTest.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
  136. <BR>
  137. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  138. </TR>
  139. <TR BGCOLOR="white" CLASS="TableRowColor">
  140. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  141. <CODE>&nbsp;void</CODE></FONT></TD>
  142. <TD><CODE><B><A HREF="../../../../../org/bouncycastle/jce/provider/test/IESTest.html#performTest()">performTest</A></B>()</CODE>
  143. <BR>
  144. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  145. </TR>
  146. </TABLE>
  147. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.util.test.SimpleTest"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  150. <TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.util.test.<A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html" title="class in org.bouncycastle.util.test">SimpleTest</A></B></TH>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD><CODE><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#areEqual(byte[], byte[])">areEqual</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#fail(java.lang.String)">fail</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#fail(java.lang.String, java.lang.Object, java.lang.Object)">fail</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#fail(java.lang.String, java.lang.Throwable)">fail</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#perform()">perform</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#runTest(org.bouncycastle.util.test.Test)">runTest</A>, <A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#runTest(org.bouncycastle.util.test.Test, java.io.PrintStream)">runTest</A></CODE></TD>
  154. </TR>
  155. </TABLE>
  156. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  159. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  163. </TR>
  164. </TABLE>
  165. &nbsp;
  166. <P>
  167. <!-- ============ METHOD DETAIL ========== -->
  168. <A NAME="method_detail"><!-- --></A>
  169. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  170. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  171. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  172. <B>Method Detail</B></FONT></TH>
  173. </TR>
  174. </TABLE>
  175. <A NAME="getName()"><!-- --></A><H3>
  176. getName</H3>
  177. <PRE>
  178. public java.lang.String <B>getName</B>()</PRE>
  179. <DL>
  180. <DD><DL>
  181. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/bouncycastle/util/test/Test.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../../org/bouncycastle/util/test/Test.html" title="interface in org.bouncycastle.util.test">Test</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html" title="class in org.bouncycastle.util.test">SimpleTest</A></CODE></DL>
  182. </DD>
  183. <DD><DL>
  184. </DL>
  185. </DD>
  186. </DL>
  187. <HR>
  188. <A NAME="performTest()"><!-- --></A><H3>
  189. performTest</H3>
  190. <PRE>
  191. public void <B>performTest</B>()
  192. throws java.lang.Exception</PRE>
  193. <DL>
  194. <DD><DL>
  195. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html#performTest()">performTest</A></CODE> in class <CODE><A HREF="../../../../../org/bouncycastle/util/test/SimpleTest.html" title="class in org.bouncycastle.util.test">SimpleTest</A></CODE></DL>
  196. </DD>
  197. <DD><DL>
  198. <DT><B>Throws:</B>
  199. <DD><CODE>java.lang.Exception</CODE></DL>
  200. </DD>
  201. </DL>
  202. <HR>
  203. <A NAME="doTest(java.security.KeyPairGenerator, javax.crypto.Cipher, javax.crypto.Cipher)"><!-- --></A><H3>
  204. doTest</H3>
  205. <PRE>
  206. public void <B>doTest</B>(java.security.KeyPairGenerator&nbsp;g,
  207. javax.crypto.Cipher&nbsp;c1,
  208. javax.crypto.Cipher&nbsp;c2)
  209. throws java.lang.Exception</PRE>
  210. <DL>
  211. <DD><DL>
  212. <DT><B>Throws:</B>
  213. <DD><CODE>java.lang.Exception</CODE></DL>
  214. </DD>
  215. </DL>
  216. <HR>
  217. <A NAME="doDefTest(java.security.KeyPairGenerator, javax.crypto.Cipher, javax.crypto.Cipher)"><!-- --></A><H3>
  218. doDefTest</H3>
  219. <PRE>
  220. public void <B>doDefTest</B>(java.security.KeyPairGenerator&nbsp;g,
  221. javax.crypto.Cipher&nbsp;c1,
  222. javax.crypto.Cipher&nbsp;c2)
  223. throws java.lang.Exception</PRE>
  224. <DL>
  225. <DD><DL>
  226. <DT><B>Throws:</B>
  227. <DD><CODE>java.lang.Exception</CODE></DL>
  228. </DD>
  229. </DL>
  230. <HR>
  231. <A NAME="main(java.lang.String[])"><!-- --></A><H3>
  232. main</H3>
  233. <PRE>
  234. public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
  235. <DL>
  236. <DD><DL>
  237. </DL>
  238. </DD>
  239. </DL>
  240. <!-- ========= END OF CLASS DATA ========= -->
  241. <HR>
  242. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  243. <A NAME="navbar_bottom"><!-- --></A>
  244. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  245. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  246. <TR>
  247. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  248. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  249. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  250. <TR ALIGN="center" VALIGN="top">
  251. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  252. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  253. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  254. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  255. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  256. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  257. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  258. </TR>
  259. </TABLE>
  260. </TD>
  261. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  262. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  263. </TD>
  264. </TR>
  265. <TR>
  266. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  267. &nbsp;<A HREF="../../../../../org/bouncycastle/jce/provider/test/HMacTest.html" title="class in org.bouncycastle.jce.provider.test"><B>PREV CLASS</B></A>&nbsp;
  268. &nbsp;<A HREF="../../../../../org/bouncycastle/jce/provider/test/ImplicitlyCaTest.html" title="class in org.bouncycastle.jce.provider.test"><B>NEXT CLASS</B></A></FONT></TD>
  269. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  270. <A HREF="../../../../../index.html?org/bouncycastle/jce/provider/test/IESTest.html" target="_top"><B>FRAMES</B></A> &nbsp;
  271. &nbsp;<A HREF="IESTest.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  272. &nbsp;<SCRIPT type="text/javascript">
  273. <!--
  274. if(window==top) {
  275. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  276. }
  277. //-->
  278. </SCRIPT>
  279. <NOSCRIPT>
  280. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  281. </NOSCRIPT>
  282. </FONT></TD>
  283. </TR>
  284. <TR>
  285. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  286. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  287. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  288. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  289. </TR>
  290. </TABLE>
  291. <A NAME="skip-navbar_bottom"></A>
  292. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  293. <HR>
  294. </BODY>
  295. </HTML>