⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cast5engine.html

📁 java非对称加密的源代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#encryptBlock(byte[], int, byte[], int)">encryptBlock</A></B>(byte[]&nbsp;src,             int&nbsp;srcIndex,             byte[]&nbsp;dst,             int&nbsp;dstIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#F1(int, int, int)">F1</A></B>(int&nbsp;D,   int&nbsp;Kmi,   int&nbsp;Kri)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The first of the three processing functions for the encryption and decryption.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#F2(int, int, int)">F2</A></B>(int&nbsp;D,   int&nbsp;Kmi,   int&nbsp;Kri)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The second of the three processing functions for the encryption and decryption.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#F3(int, int, int)">F3</A></B>(int&nbsp;D,   int&nbsp;Kmi,   int&nbsp;Kri)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The third of the three processing functions for the encryption and decryption.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#getAlgorithmName()">getAlgorithmName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of the algorithm the cipher implements.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#getBlockSize()">getBlockSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the block size for this cipher (in bytes).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#init(boolean, org.bouncycastle.crypto.CipherParameters)">init</A></B>(boolean&nbsp;encrypting,     <A HREF="../../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A>&nbsp;params)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initialise a CAST cipher.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#IntsTo32bits(int[], int)">IntsTo32bits</A></B>(int[]&nbsp;b,             int&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#processBlock(byte[], int, byte[], int)">processBlock</A></B>(byte[]&nbsp;in,             int&nbsp;inOff,             byte[]&nbsp;out,             int&nbsp;outOff)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process one block of input from the array in and write it to the out array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#reset()">reset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset the cipher.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/engines/CAST5Engine.html#setKey(byte[])">setKey</A></B>(byte[]&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="M32"><!-- --></A><H3>M32</H3><PRE>protected static final int <B>M32</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.engines.CAST5Engine.M32">Constant Field Values</A></DL></DL><HR><A NAME="S1"><!-- --></A><H3>S1</H3><PRE>protected static final int[] <B>S1</B></PRE><DL><DL></DL></DL><HR><A NAME="S2"><!-- --></A><H3>S2</H3><PRE>protected static final int[] <B>S2</B></PRE><DL><DL></DL></DL><HR><A NAME="S3"><!-- --></A><H3>S3</H3><PRE>protected static final int[] <B>S3</B></PRE><DL><DL></DL></DL><HR><A NAME="S4"><!-- --></A><H3>S4</H3><PRE>protected static final int[] <B>S4</B></PRE><DL><DL></DL></DL><HR><A NAME="S5"><!-- --></A><H3>S5</H3><PRE>protected static final int[] <B>S5</B></PRE><DL><DL></DL></DL><HR><A NAME="S6"><!-- --></A><H3>S6</H3><PRE>protected static final int[] <B>S6</B></PRE><DL><DL></DL></DL><HR><A NAME="S7"><!-- --></A><H3>S7</H3><PRE>protected static final int[] <B>S7</B></PRE><DL><DL></DL></DL><HR><A NAME="S8"><!-- --></A><H3>S8</H3><PRE>protected static final int[] <B>S8</B></PRE><DL><DL></DL></DL><HR><A NAME="MAX_ROUNDS"><!-- --></A><H3>MAX_ROUNDS</H3><PRE>protected static final int <B>MAX_ROUNDS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.engines.CAST5Engine.MAX_ROUNDS">Constant Field Values</A></DL></DL><HR><A NAME="RED_ROUNDS"><!-- --></A><H3>RED_ROUNDS</H3><PRE>protected static final int <B>RED_ROUNDS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.engines.CAST5Engine.RED_ROUNDS">Constant Field Values</A></DL></DL><HR><A NAME="BLOCK_SIZE"><!-- --></A><H3>BLOCK_SIZE</H3><PRE>protected static final int <B>BLOCK_SIZE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.engines.CAST5Engine.BLOCK_SIZE">Constant Field Values</A></DL></DL><HR><A NAME="_Kr"><!-- --></A><H3>_Kr</H3><PRE>protected int[] <B>_Kr</B></PRE><DL><DL></DL></DL><HR><A NAME="_Km"><!-- --></A><H3>_Km</H3><PRE>protected int[] <B>_Km</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="CAST5Engine()"><!-- --></A><H3>CAST5Engine</H3><PRE>public <B>CAST5Engine</B>()</PRE><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="init(boolean, org.bouncycastle.crypto.CipherParameters)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(boolean&nbsp;encrypting,                 <A HREF="../../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A>&nbsp;params)</PRE><DL><DD>initialise a CAST cipher.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#init(boolean, org.bouncycastle.crypto.CipherParameters)">init</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>encrypting</CODE> - whether or not we are for encryption.<DD><CODE>params</CODE> - the parameters required to set up the cipher.<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>public java.lang.String <B>getAlgorithmName</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#getAlgorithmName()">BlockCipher</A></CODE></B></DD><DD>Return the name of the algorithm the cipher implements.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/crypto/BlockCipher.html#getAlgorithmName()">getAlgorithmName</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 name of the algorithm the cipher implements.</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -