📄 bufferedasymmetricblockcipher.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="buf"><!-- --></A><H3>buf</H3><PRE>protected byte[] <B>buf</B></PRE><DL><DL></DL></DL><HR><A NAME="bufOff"><!-- --></A><H3>bufOff</H3><PRE>protected int <B>bufOff</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="BufferedAsymmetricBlockCipher(org.bouncycastle.crypto.AsymmetricBlockCipher)"><!-- --></A><H3>BufferedAsymmetricBlockCipher</H3><PRE>public <B>BufferedAsymmetricBlockCipher</B>(<A HREF="../../../org/bouncycastle/crypto/AsymmetricBlockCipher.html" title="interface in org.bouncycastle.crypto">AsymmetricBlockCipher</A> cipher)</PRE><DL><DD>base constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>cipher</CODE> - the cipher this buffering object wraps.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getUnderlyingCipher()"><!-- --></A><H3>getUnderlyingCipher</H3><PRE>public <A HREF="../../../org/bouncycastle/crypto/AsymmetricBlockCipher.html" title="interface in org.bouncycastle.crypto">AsymmetricBlockCipher</A> <B>getUnderlyingCipher</B>()</PRE><DL><DD>return the underlying cipher for the buffer.<P><DD><DL><DT><B>Returns:</B><DD>the underlying cipher for the buffer.</DL></DD></DL><HR><A NAME="getBufferPosition()"><!-- --></A><H3>getBufferPosition</H3><PRE>public int <B>getBufferPosition</B>()</PRE><DL><DD>return the amount of data sitting in the buffer.<P><DD><DL><DT><B>Returns:</B><DD>the amount of data sitting in the buffer.</DL></DD></DL><HR><A NAME="init(boolean, org.bouncycastle.crypto.CipherParameters)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(boolean forEncryption, <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A> params)</PRE><DL><DD>initialise the buffer and the underlying cipher.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>forEncryption</CODE> - if true the cipher is initialised for encryption, if false for decryption.<DD><CODE>params</CODE> - the key and other data required by the cipher.</DL></DD></DL><HR><A NAME="getInputBlockSize()"><!-- --></A><H3>getInputBlockSize</H3><PRE>public int <B>getInputBlockSize</B>()</PRE><DL><DD>returns the largest size an input block can be.<P><DD><DL><DT><B>Returns:</B><DD>maximum size for an input block.</DL></DD></DL><HR><A NAME="getOutputBlockSize()"><!-- --></A><H3>getOutputBlockSize</H3><PRE>public int <B>getOutputBlockSize</B>()</PRE><DL><DD>returns the maximum size of the block produced by this cipher.<P><DD><DL><DT><B>Returns:</B><DD>maximum size of the output block produced by the cipher.</DL></DD></DL><HR><A NAME="processByte(byte)"><!-- --></A><H3>processByte</H3><PRE>public void <B>processByte</B>(byte in)</PRE><DL><DD>add another byte for processing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the input byte.</DL></DD></DL><HR><A NAME="processBytes(byte[], int, int)"><!-- --></A><H3>processBytes</H3><PRE>public void <B>processBytes</B>(byte[] in, int inOff, int len)</PRE><DL><DD>add len bytes to the buffer for processing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the input data<DD><CODE>inOff</CODE> - offset into the in array where the data starts<DD><CODE>len</CODE> - the length of the block to be processed.</DL></DD></DL><HR><A NAME="doFinal()"><!-- --></A><H3>doFinal</H3><PRE>public byte[] <B>doFinal</B>() throws <A HREF="../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></PRE><DL><DD>process the contents of the buffer using the underlying cipher.<P><DD><DL><DT><B>Returns:</B><DD>the result of the encryption/decryption process on the buffer.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></CODE> - if we are given a garbage block.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>Reset the buffer and the underlying cipher.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Bouncy Castle Cryptography Library 1.38</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/bouncycastle/crypto/BlockCipher.html" title="interface in org.bouncycastle.crypto"><B>PREV CLASS</B></A> <A HREF="../../../org/bouncycastle/crypto/BufferedBlockCipher.html" title="class in org.bouncycastle.crypto"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/bouncycastle/crypto/BufferedAsymmetricBlockCipher.html" target="_top"><B>FRAMES</B></A> <A HREF="BufferedAsymmetricBlockCipher.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -