📄 cast5engine.html
字号:
<A NAME="processBlock(byte[], int, byte[], int)"><!-- --></A><H3>processBlock</H3><PRE>public int <B>processBlock</B>(byte[] in, int inOff, byte[] out, int outOff)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#processBlock(byte[], int, byte[], int)">BlockCipher</A></CODE></B></DD><DD>Process one block of input from the array in and write it to the out array.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#processBlock(byte[], int, byte[], int)">processBlock</A></CODE> in interface <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html" title="interface in org.bouncycastle.crypto">BlockCipher</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the array containing the input data.<DD><CODE>inOff</CODE> - offset into the in array the data starts at.<DD><CODE>out</CODE> - the array the output data will be copied into.<DD><CODE>outOff</CODE> - the offset into the out array the output will start at.<DT><B>Returns:</B><DD>the number of bytes processed and produced.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#reset()">BlockCipher</A></CODE></B></DD><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html" title="interface in org.bouncycastle.crypto">BlockCipher</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBlockSize()"><!-- --></A><H3>getBlockSize</H3><PRE>public int <B>getBlockSize</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#getBlockSize()">BlockCipher</A></CODE></B></DD><DD>Return the block size for this cipher (in bytes).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#getBlockSize()">getBlockSize</A></CODE> in interface <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html" title="interface in org.bouncycastle.crypto">BlockCipher</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the block size for this cipher in bytes.</DL></DD></DL><HR><A NAME="setKey(byte[])"><!-- --></A><H3>setKey</H3><PRE>protected void <B>setKey</B>(byte[] key)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="encryptBlock(byte[], int, byte[], int)"><!-- --></A><H3>encryptBlock</H3><PRE>protected int <B>encryptBlock</B>(byte[] src, int srcIndex, byte[] dst, int dstIndex)</PRE><DL><DD>Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The plaintext buffer<DD><CODE>srcIndex</CODE> - An offset into src<DD><CODE>dst</CODE> - The ciphertext buffer<DD><CODE>dstIndex</CODE> - An offset into dst</DL></DD></DL><HR><A NAME="decryptBlock(byte[], int, byte[], int)"><!-- --></A><H3>decryptBlock</H3><PRE>protected int <B>decryptBlock</B>(byte[] src, int srcIndex, byte[] dst, int dstIndex)</PRE><DL><DD>Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The plaintext buffer<DD><CODE>srcIndex</CODE> - An offset into src<DD><CODE>dst</CODE> - The ciphertext buffer<DD><CODE>dstIndex</CODE> - An offset into dst</DL></DD></DL><HR><A NAME="F1(int, int, int)"><!-- --></A><H3>F1</H3><PRE>protected final int <B>F1</B>(int D, int Kmi, int Kri)</PRE><DL><DD>The first of the three processing functions for the encryption and decryption.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>D</CODE> - the input to be processed<DD><CODE>Kmi</CODE> - the mask to be used from Km[n]<DD><CODE>Kri</CODE> - the rotation value to be used</DL></DD></DL><HR><A NAME="F2(int, int, int)"><!-- --></A><H3>F2</H3><PRE>protected final int <B>F2</B>(int D, int Kmi, int Kri)</PRE><DL><DD>The second of the three processing functions for the encryption and decryption.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>D</CODE> - the input to be processed<DD><CODE>Kmi</CODE> - the mask to be used from Km[n]<DD><CODE>Kri</CODE> - the rotation value to be used</DL></DD></DL><HR><A NAME="F3(int, int, int)"><!-- --></A><H3>F3</H3><PRE>protected final int <B>F3</B>(int D, int Kmi, int Kri)</PRE><DL><DD>The third of the three processing functions for the encryption and decryption.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>D</CODE> - the input to be processed<DD><CODE>Kmi</CODE> - the mask to be used from Km[n]<DD><CODE>Kri</CODE> - the rotation value to be used</DL></DD></DL><HR><A NAME="CAST_Encipher(int, int, int[])"><!-- --></A><H3>CAST_Encipher</H3><PRE>protected final void <B>CAST_Encipher</B>(int L0, int R0, int[] result)</PRE><DL><DD>Does the 16 rounds to encrypt the block.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>L0</CODE> - the LH-32bits of the plaintext block<DD><CODE>R0</CODE> - the RH-32bits of the plaintext block</DL></DD></DL><HR><A NAME="CAST_Decipher(int, int, int[])"><!-- --></A><H3>CAST_Decipher</H3><PRE>protected final void <B>CAST_Decipher</B>(int L16, int R16, int[] result)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="Bits32ToInts(int, int[], int)"><!-- --></A><H3>Bits32ToInts</H3><PRE>protected final void <B>Bits32ToInts</B>(int in, int[] b, int offset)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="IntsTo32bits(int[], int)"><!-- --></A><H3>IntsTo32bits</H3><PRE>protected final int <B>IntsTo32bits</B>(int[] b, int i)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="Bits32ToBytes(int, byte[], int)"><!-- --></A><H3>Bits32ToBytes</H3><PRE>protected final void <B>Bits32ToBytes</B>(int in, byte[] b, int offset)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="BytesTo32bits(byte[], int)"><!-- --></A><H3>BytesTo32bits</H3><PRE>protected final int <B>BytesTo32bits</B>(byte[] b, int i)</PRE><DL><DD><DL></DL></DD><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/engines/CamelliaWrapEngine.html" title="class in org.bouncycastle.crypto.engines"><B>PREV CLASS</B></A> <A HREF="../../../../org/bouncycastle/crypto/engines/CAST6Engine.html" title="class in org.bouncycastle.crypto.engines"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/bouncycastle/crypto/engines/CAST5Engine.html" target="_top"><B>FRAMES</B></A> <A HREF="CAST5Engine.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 + -