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

📄 pbeparametersgenerator.html

📁 java非对称加密的源代码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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="password"><!-- --></A><H3>password</H3><PRE>protected byte[] <B>password</B></PRE><DL><DL></DL></DL><HR><A NAME="salt"><!-- --></A><H3>salt</H3><PRE>protected byte[] <B>salt</B></PRE><DL><DL></DL></DL><HR><A NAME="iterationCount"><!-- --></A><H3>iterationCount</H3><PRE>protected int <B>iterationCount</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="PBEParametersGenerator()"><!-- --></A><H3>PBEParametersGenerator</H3><PRE>protected <B>PBEParametersGenerator</B>()</PRE><DL><DD>base constructor.<P></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(byte[], byte[], int)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(byte[]&nbsp;password,                 byte[]&nbsp;salt,                 int&nbsp;iterationCount)</PRE><DL><DD>initialise the PBE generator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - the password converted into bytes (see below).<DD><CODE>salt</CODE> - the salt to be mixed with the password.<DD><CODE>iterationCount</CODE> - the number of iterations the "mixing" function is to be applied for.</DL></DD></DL><HR><A NAME="getPassword()"><!-- --></A><H3>getPassword</H3><PRE>public byte[] <B>getPassword</B>()</PRE><DL><DD>return the password byte array.<P><DD><DL><DT><B>Returns:</B><DD>the password byte array.</DL></DD></DL><HR><A NAME="getSalt()"><!-- --></A><H3>getSalt</H3><PRE>public byte[] <B>getSalt</B>()</PRE><DL><DD>return the salt byte array.<P><DD><DL><DT><B>Returns:</B><DD>the salt byte array.</DL></DD></DL><HR><A NAME="getIterationCount()"><!-- --></A><H3>getIterationCount</H3><PRE>public int <B>getIterationCount</B>()</PRE><DL><DD>return the iteration count.<P><DD><DL><DT><B>Returns:</B><DD>the iteration count.</DL></DD></DL><HR><A NAME="generateDerivedParameters(int)"><!-- --></A><H3>generateDerivedParameters</H3><PRE>public abstract <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A> <B>generateDerivedParameters</B>(int&nbsp;keySize)</PRE><DL><DD>generate derived parameters for a key of length keySize.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>keySize</CODE> - the length, in bits, of the key required.<DT><B>Returns:</B><DD>a parameters object representing a key.</DL></DD></DL><HR><A NAME="generateDerivedParameters(int, int)"><!-- --></A><H3>generateDerivedParameters</H3><PRE>public abstract <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A> <B>generateDerivedParameters</B>(int&nbsp;keySize,                                                           int&nbsp;ivSize)</PRE><DL><DD>generate derived parameters for a key of length keySize, and an initialisation vector (IV) of length ivSize.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>keySize</CODE> - the length, in bits, of the key required.<DD><CODE>ivSize</CODE> - the length, in bits, of the iv required.<DT><B>Returns:</B><DD>a parameters object representing a key and an IV.</DL></DD></DL><HR><A NAME="generateDerivedMacParameters(int)"><!-- --></A><H3>generateDerivedMacParameters</H3><PRE>public abstract <A HREF="../../../org/bouncycastle/crypto/CipherParameters.html" title="interface in org.bouncycastle.crypto">CipherParameters</A> <B>generateDerivedMacParameters</B>(int&nbsp;keySize)</PRE><DL><DD>generate derived parameters for a key of length keySize, specifically for use with a MAC.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>keySize</CODE> - the length, in bits, of the key required.<DT><B>Returns:</B><DD>a parameters object representing a key.</DL></DD></DL><HR><A NAME="PKCS5PasswordToBytes(char[])"><!-- --></A><H3>PKCS5PasswordToBytes</H3><PRE>public static byte[] <B>PKCS5PasswordToBytes</B>(char[]&nbsp;password)</PRE><DL><DD>converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - a character array reqpresenting the password.<DT><B>Returns:</B><DD>a byte array representing the password.</DL></DD></DL><HR><A NAME="PKCS12PasswordToBytes(char[])"><!-- --></A><H3>PKCS12PasswordToBytes</H3><PRE>public static byte[] <B>PKCS12PasswordToBytes</B>(char[]&nbsp;password)</PRE><DL><DD>converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - a character array representing the password.<DT><B>Returns:</B><DD>a byte array representing the password.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../org/bouncycastle/crypto/MaxBytesExceededException.html" title="class in org.bouncycastle.crypto"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/bouncycastle/crypto/RuntimeCryptoException.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/PBEParametersGenerator.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PBEParametersGenerator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -