/lib/bouncycastle/docs/org/bouncycastle/crypto/Wrapper.html

https://bitbucket.org/arkban/somersault · HTML · 280 lines · 226 code · 34 blank · 20 comment · 0 complexity · 635ed7c2bb6be437e38b03f1b0639b8a 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:35 EST 2010 -->
  6. <TITLE>
  7. Wrapper (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="Wrapper (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/StreamCipher.html" title="interface in org.bouncycastle.crypto"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;NEXT CLASS</FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../index.html?org/bouncycastle/crypto/Wrapper.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="Wrapper.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.crypto</FONT>
  80. <BR>
  81. Interface Wrapper</H2>
  82. <DL>
  83. <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/bouncycastle/crypto/engines/AESWrapEngine.html" title="class in org.bouncycastle.crypto.engines">AESWrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/CamelliaWrapEngine.html" title="class in org.bouncycastle.crypto.engines">CamelliaWrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/DESedeWrapEngine.html" title="class in org.bouncycastle.crypto.engines">DESedeWrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/RC2WrapEngine.html" title="class in org.bouncycastle.crypto.engines">RC2WrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/RFC3211WrapEngine.html" title="class in org.bouncycastle.crypto.engines">RFC3211WrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/RFC3394WrapEngine.html" title="class in org.bouncycastle.crypto.engines">RFC3394WrapEngine</A>, <A HREF="../../../org/bouncycastle/crypto/engines/SEEDWrapEngine.html" title="class in org.bouncycastle.crypto.engines">SEEDWrapEngine</A></DD>
  84. </DL>
  85. <HR>
  86. <DL>
  87. <DT><PRE>public interface <B>Wrapper</B></DL>
  88. </PRE>
  89. <P>
  90. <HR>
  91. <P>
  92. <!-- ========== METHOD SUMMARY =========== -->
  93. <A NAME="method_summary"><!-- --></A>
  94. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  95. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  96. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  97. <B>Method Summary</B></FONT></TH>
  98. </TR>
  99. <TR BGCOLOR="white" CLASS="TableRowColor">
  100. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  101. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  102. <TD><CODE><B><A HREF="../../../org/bouncycastle/crypto/Wrapper.html#getAlgorithmName()">getAlgorithmName</A></B>()</CODE>
  103. <BR>
  104. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of the algorithm the wrapper implements.</TD>
  105. </TR>
  106. <TR BGCOLOR="white" CLASS="TableRowColor">
  107. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  108. <CODE>&nbsp;void</CODE></FONT></TD>
  109. <TD><CODE><B><A HREF="../../../org/bouncycastle/crypto/Wrapper.html#init(boolean, org.bouncycastle.crypto.CipherParameters)">init</A></B>(boolean&nbsp;forWrapping,
  110. <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A>&nbsp;param)</CODE>
  111. <BR>
  112. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  113. </TR>
  114. <TR BGCOLOR="white" CLASS="TableRowColor">
  115. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  116. <CODE>&nbsp;byte[]</CODE></FONT></TD>
  117. <TD><CODE><B><A HREF="../../../org/bouncycastle/crypto/Wrapper.html#unwrap(byte[], int, int)">unwrap</A></B>(byte[]&nbsp;in,
  118. int&nbsp;inOff,
  119. int&nbsp;inLen)</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>&nbsp;byte[]</CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../org/bouncycastle/crypto/Wrapper.html#wrap(byte[], int, int)">wrap</A></B>(byte[]&nbsp;in,
  127. int&nbsp;inOff,
  128. int&nbsp;inLen)</CODE>
  129. <BR>
  130. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  131. </TR>
  132. </TABLE>
  133. &nbsp;
  134. <P>
  135. <!-- ============ METHOD DETAIL ========== -->
  136. <A NAME="method_detail"><!-- --></A>
  137. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  138. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  139. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  140. <B>Method Detail</B></FONT></TH>
  141. </TR>
  142. </TABLE>
  143. <A NAME="init(boolean, org.bouncycastle.crypto.CipherParameters)"><!-- --></A><H3>
  144. init</H3>
  145. <PRE>
  146. void <B>init</B>(boolean&nbsp;forWrapping,
  147. <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A>&nbsp;param)</PRE>
  148. <DL>
  149. <DD><DL>
  150. </DL>
  151. </DD>
  152. </DL>
  153. <HR>
  154. <A NAME="getAlgorithmName()"><!-- --></A><H3>
  155. getAlgorithmName</H3>
  156. <PRE>
  157. java.lang.String <B>getAlgorithmName</B>()</PRE>
  158. <DL>
  159. <DD>Return the name of the algorithm the wrapper implements.
  160. <P>
  161. <DD><DL>
  162. <DT><B>Returns:</B><DD>the name of the algorithm the wrapper implements.</DL>
  163. </DD>
  164. </DL>
  165. <HR>
  166. <A NAME="wrap(byte[], int, int)"><!-- --></A><H3>
  167. wrap</H3>
  168. <PRE>
  169. byte[] <B>wrap</B>(byte[]&nbsp;in,
  170. int&nbsp;inOff,
  171. int&nbsp;inLen)</PRE>
  172. <DL>
  173. <DD><DL>
  174. </DL>
  175. </DD>
  176. </DL>
  177. <HR>
  178. <A NAME="unwrap(byte[], int, int)"><!-- --></A><H3>
  179. unwrap</H3>
  180. <PRE>
  181. byte[] <B>unwrap</B>(byte[]&nbsp;in,
  182. int&nbsp;inOff,
  183. int&nbsp;inLen)
  184. throws <A HREF="../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></PRE>
  185. <DL>
  186. <DD><DL>
  187. <DT><B>Throws:</B>
  188. <DD><CODE><A HREF="../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></CODE></DL>
  189. </DD>
  190. </DL>
  191. <!-- ========= END OF CLASS DATA ========= -->
  192. <HR>
  193. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  194. <A NAME="navbar_bottom"><!-- --></A>
  195. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  196. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  197. <TR>
  198. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  199. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  200. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  201. <TR ALIGN="center" VALIGN="top">
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  204. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  205. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  206. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  207. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  208. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  209. </TR>
  210. </TABLE>
  211. </TD>
  212. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  213. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  214. </TD>
  215. </TR>
  216. <TR>
  217. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  218. &nbsp;<A HREF="../../../org/bouncycastle/crypto/StreamCipher.html" title="interface in org.bouncycastle.crypto"><B>PREV CLASS</B></A>&nbsp;
  219. &nbsp;NEXT CLASS</FONT></TD>
  220. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  221. <A HREF="../../../index.html?org/bouncycastle/crypto/Wrapper.html" target="_top"><B>FRAMES</B></A> &nbsp;
  222. &nbsp;<A HREF="Wrapper.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  223. &nbsp;<SCRIPT type="text/javascript">
  224. <!--
  225. if(window==top) {
  226. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  227. }
  228. //-->
  229. </SCRIPT>
  230. <NOSCRIPT>
  231. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  232. </NOSCRIPT>
  233. </FONT></TD>
  234. </TR>
  235. <TR>
  236. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  237. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  238. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  239. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  240. </TR>
  241. </TABLE>
  242. <A NAME="skip-navbar_bottom"></A>
  243. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  244. <HR>
  245. </BODY>
  246. </HTML>