📄 aeadblockcipher.html
字号:
<A HREF="../../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A> params) throws java.lang.IllegalArgumentException</PRE><DL><DD>initialise the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>forEncryption</CODE> - true if we are setting up for encryption, false otherwise.<DD><CODE>params</CODE> - the necessary parameters for the underlying cipher to be initialised.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the params argument is inappropriate.</DL></DD></DL><HR><A NAME="getAlgorithmName()"><!-- --></A><H3>getAlgorithmName</H3><PRE>java.lang.String <B>getAlgorithmName</B>()</PRE><DL><DD>Return the name of the algorithm.<P><DD><DL><DT><B>Returns:</B><DD>the algorithm name.</DL></DD></DL><HR><A NAME="getUnderlyingCipher()"><!-- --></A><H3>getUnderlyingCipher</H3><PRE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html" title="interface in org.bouncycastle.crypto">BlockCipher</A> <B>getUnderlyingCipher</B>()</PRE><DL><DD>return the cipher this object wraps.<P><DD><DL><DT><B>Returns:</B><DD>the cipher this object wraps.</DL></DD></DL><HR><A NAME="processByte(byte, byte[], int)"><!-- --></A><H3>processByte</H3><PRE>int <B>processByte</B>(byte in, byte[] out, int outOff) throws <A HREF="../../../../org/bouncycastle/crypto/DataLengthException.html" title="class in org.bouncycastle.crypto">DataLengthException</A></PRE><DL><DD>encrypt/decrypt a single byte.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the byte to be processed.<DD><CODE>out</CODE> - the output buffer the processed byte goes into.<DD><CODE>outOff</CODE> - the offset into the output byte array the processed data starts at.<DT><B>Returns:</B><DD>the number of bytes written to out.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/DataLengthException.html" title="class in org.bouncycastle.crypto">DataLengthException</A></CODE> - if the output buffer is too small.</DL></DD></DL><HR><A NAME="processBytes(byte[], int, int, byte[], int)"><!-- --></A><H3>processBytes</H3><PRE>int <B>processBytes</B>(byte[] in, int inOff, int len, byte[] out, int outOff) throws <A HREF="../../../../org/bouncycastle/crypto/DataLengthException.html" title="class in org.bouncycastle.crypto">DataLengthException</A></PRE><DL><DD>process a block of bytes from in putting the result into out.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the input byte array.<DD><CODE>inOff</CODE> - the offset into the in array where the data to be processed starts.<DD><CODE>len</CODE> - the number of bytes to be processed.<DD><CODE>out</CODE> - the output buffer the processed bytes go into.<DD><CODE>outOff</CODE> - the offset into the output byte array the processed data starts at.<DT><B>Returns:</B><DD>the number of bytes written to out.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/DataLengthException.html" title="class in org.bouncycastle.crypto">DataLengthException</A></CODE> - if the output buffer is too small.</DL></DD></DL><HR><A NAME="doFinal(byte[], int)"><!-- --></A><H3>doFinal</H3><PRE>int <B>doFinal</B>(byte[] out, int outOff) throws java.lang.IllegalStateException, <A HREF="../../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></PRE><DL><DD>Finish the operation either appending or verifying the MAC at the end of the data.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - space for any resulting output data.<DD><CODE>outOff</CODE> - offset into out to start copying the data at.<DT><B>Returns:</B><DD>number of bytes written into out.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the cipher is in an inappropriate state.<DD><CODE><A HREF="../../../../org/bouncycastle/crypto/InvalidCipherTextException.html" title="class in org.bouncycastle.crypto">InvalidCipherTextException</A></CODE> - if the MAC fails to match.</DL></DD></DL><HR><A NAME="getMac()"><!-- --></A><H3>getMac</H3><PRE>byte[] <B>getMac</B>()</PRE><DL><DD>Return the value of the MAC associated with the last stream processed.<P><DD><DL><DT><B>Returns:</B><DD>MAC for plaintext data.</DL></DD></DL><HR><A NAME="getUpdateOutputSize(int)"><!-- --></A><H3>getUpdateOutputSize</H3><PRE>int <B>getUpdateOutputSize</B>(int len)</PRE><DL><DD>return the size of the output buffer required for a processBytes an input of len bytes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>len</CODE> - the length of the input.<DT><B>Returns:</B><DD>the space required to accommodate a call to processBytes with len bytes of input.</DL></DD></DL><HR><A NAME="getOutputSize(int)"><!-- --></A><H3>getOutputSize</H3><PRE>int <B>getOutputSize</B>(int len)</PRE><DL><DD>return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>len</CODE> - the length of the input.<DT><B>Returns:</B><DD>the space required to accommodate a call to processBytes and doFinal with len bytes of input.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>void <B>reset</B>()</PRE><DL><DD>Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).<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"> PREV CLASS <A HREF="../../../../org/bouncycastle/crypto/modes/CBCBlockCipher.html" title="class in org.bouncycastle.crypto.modes"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/bouncycastle/crypto/modes/AEADBlockCipher.html" target="_top"><B>FRAMES</B></A> <A HREF="AEADBlockCipher.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -