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

📄 rsakey.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#getPrimeQ(byte[], int)">getPrimeQ</A></B>(byte[]&nbsp;prQ,          int&nbsp;offset)</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="../../../../jxta/security/impl/publickey/RSAKey.html#getPrimeQLength()">getPrimeQLength</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prime q</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="../../../../jxta/security/impl/publickey/RSAKey.html#getPrivateExponent(byte[], int)">getPrivateExponent</A></B>(byte[]&nbsp;exp,                   int&nbsp;offset)</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="../../../../jxta/security/impl/publickey/RSAKey.html#getPrivateExponentLength()">getPrivateExponentLength</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get private exponent length  d = 1/e mod (p-1)(q-1)</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="../../../../jxta/security/impl/publickey/RSAKey.html#getPublicExponent(byte[], int)">getPublicExponent</A></B>(byte[]&nbsp;exp,                  int&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;copy the exponent into the byte array and return the exponent length in bytes.</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="../../../../jxta/security/impl/publickey/RSAKey.html#getPublicExponentLength()">getPublicExponentLength</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get public exponent length   e</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#getSize()">getSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get Key length in bits</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#getType()">getType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get key type</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#isInitialized()">isInitialized</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check initialization state of key</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#RSAEquals(jxta.security.impl.publickey.RSAKey, byte)">RSAEquals</A></B>(<A HREF="../../../../jxta/security/impl/publickey/RSAKey.html" title="class in jxta.security.impl.publickey">RSAKey</A>&nbsp;k,          byte&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if key is equal to "this" key. </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="../../../../jxta/security/impl/publickey/RSAKey.html#setCrtCoefficient(byte[], int, int)">setCrtCoefficient</A></B>(byte[]&nbsp;crtCo,                  int&nbsp;offset,                  int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1/q mod p</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="../../../../jxta/security/impl/publickey/RSAKey.html#setDebug()">setDebug</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;turn on debugging</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="../../../../jxta/security/impl/publickey/RSAKey.html#setModulus(byte[], int, int)">setModulus</A></B>(byte[]&nbsp;mod,           int&nbsp;offset,           int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store the modulus as restricted by our size.</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="../../../../jxta/security/impl/publickey/RSAKey.html#setPrimeExponentP(byte[], int, int)">setPrimeExponentP</A></B>(byte[]&nbsp;pExpP,                  int&nbsp;offset,                  int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d mod(p - 1)</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="../../../../jxta/security/impl/publickey/RSAKey.html#setPrimeExponentQ(byte[], int, int)">setPrimeExponentQ</A></B>(byte[]&nbsp;pExpQ,                  int&nbsp;offset,                  int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d mod(q - 1)</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="../../../../jxta/security/impl/publickey/RSAKey.html#setPrimeP(byte[], int, int)">setPrimeP</A></B>(byte[]&nbsp;prP,          int&nbsp;offset,          int&nbsp;length)</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;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#setPrimeQ(byte[], int, int)">setPrimeQ</A></B>(byte[]&nbsp;prQ,          int&nbsp;offset,          int&nbsp;length)</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;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSAKey.html#setPrivateExponent(byte[], int, int)">setPrivateExponent</A></B>(byte[]&nbsp;exp,                   int&nbsp;offset,                   int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given two primes, p and q, and [e,(p-1)(q-1)] = 1, n = pq      Private Key: d = 1/e mod n                   c = m**d mod n, d is exponent, n modulus      We also have methods to set parameters for the Chinese      remainder theorem algorithm         d mod p-1, d mod q-1, 1/q mod p</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="../../../../jxta/security/impl/publickey/RSAKey.html#setPublicExponent(byte[], int, int)">setPublicExponent</A></B>(byte[]&nbsp;exp,                  int&nbsp;offset,                  int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store the exponent as restricted by our size.</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"><TD><B>Methods inherited from class java.lang.Object</B></TD></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 =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="RSAKey(byte, short)"><!-- --></A><H3>RSAKey</H3><PRE>public <B>RSAKey</B>(byte&nbsp;type,              short&nbsp;len)</PRE><DL><DD>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"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAlgorithmName()"><!-- --></A><H3>getAlgorithmName</H3><PRE>public java.lang.String <B>getAlgorithmName</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../jxta/security/util/Description.html#getAlgorithmName()">getAlgorithmName</A></CODE> in interface <CODE><A HREF="../../../../jxta/security/util/Description.html" title="interface in jxta.security.util">Description</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setDebug()"><!-- --></A><H3>setDebug</H3><PRE>public void <B>setDebug</B>()</PRE><DL><DD>turn on debugging<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../jxta/security/util/Description.html#setDebug()">setDebug</A></CODE> in interface <CODE><A HREF="../../../../jxta/security/util/Description.html" title="interface in jxta.security.util">Description</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clearDebug()"><!-- --></A><H3>clearDebug</H3><PRE>public void <B>clearDebug</B>()</PRE><DL><DD>turn off debugging<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../jxta/security/util/Description.html#clearDebug()">clearDebug</A></CODE> in interface <CODE><A HREF="../../../../jxta/security/util/Description.html" title="interface in jxta.security.util">Description</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isInitialized()"><!-- --></A><H3>isInitialized</H3><PRE>public boolean <B>isInitialized</B>()</PRE><DL><DD>Check initialization state of key<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../jxta/security/cipher/Key.html#isInitialized()">isInitialized</A></CODE> in interface <CODE><A HREF="../../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clearKey()"><!-- --></A><H3>clearKey</H3><PRE>public void <B>clearKey</B>()</PRE><DL><DD>Clear key values<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../jxta/security/cipher/Key.html#clearKey()">clearKey</A></CODE> in interface <CODE><A HREF="../../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A></CODE></DL></DD><DD><DL>

⌨️ 快捷键说明

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