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

📄 cryptoexception.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#getPrivatekey()">getPrivatekey</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the RSA private key data</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>RSAKey.</B><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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>RSAKey.</B><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;&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>RSAKey.</B><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>RSAKey.</B><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>RSAKey.</B><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>RSAKey.</B><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>RSAKey.</B><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>RSAKey.</B><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></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../jxta/security/impl/publickey/package-summary.html">jxta.security.impl.publickey</A> that throw <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#RSA(jxta.security.impl.publickey.RSAKey)">RSA</A></B>(<A HREF="../../../../jxta/security/impl/publickey/RSAKey.html" title="class in jxta.security.impl.publickey">RSAKey</A>&nbsp;rKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Note: KeyBuilder must be called prior to instantiating this        class to set the appropriate size.</TD></TR></TABLE>&nbsp;<P><A NAME="jxta.security.impl.random"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A> in <A HREF="../../../../jxta/security/impl/random/package-summary.html">jxta.security.impl.random</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../jxta/security/impl/random/package-summary.html">jxta.security.impl.random</A> that throw <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../jxta/security/impl/random/JRandom.html#JRandom()">JRandom</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Required constructors</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../jxta/security/impl/random/JRandom.html#JRandom(long)">JRandom</A></B>(long&nbsp;lseed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<P><A NAME="jxta.security.impl.signature"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A> in <A HREF="../../../../jxta/security/impl/signature/package-summary.html">jxta.security.impl.signature</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../jxta/security/impl/signature/package-summary.html">jxta.security.impl.signature</A> that throw <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></FONT></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>RSASignature.</B><B><A HREF="../../../../jxta/security/impl/signature/RSASignature.html#init(byte)">init</A></B>(byte&nbsp;theMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initialize the Signature mode - sign or verify</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>RSASignature.</B><B><A HREF="../../../../jxta/security/impl/signature/RSASignature.html#update(byte[], int, int)">update</A></B>(byte[]&nbsp;inbuf,       int&nbsp;offset,       int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates data to be signed. </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>RSASignature.</B><B><A HREF="../../../../jxta/security/impl/signature/RSASignature.html#sign(byte[], int, int)">sign</A></B>(byte[]&nbsp;inbuf,     int&nbsp;offset,     int&nbsp;inLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signs the hash generated from the last(only) buffer of data.</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>RSASignature.</B><B><A HREF="../../../../jxta/security/impl/signature/RSASignature.html#verify(byte[], int, int, byte[], int, int)">verify</A></B>(byte[]&nbsp;inBuf,       int&nbsp;inOffset,       int&nbsp;inLength,       byte[]&nbsp;sigBuf,       int&nbsp;sigOffset,       int&nbsp;sigLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verifies a signature for last/only inBuf against the signature in sigBuf. </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>NullSignature.</B><B><A HREF="../../../../jxta/security/impl/signature/NullSignature.html#init(byte)">init</A></B>(byte&nbsp;theMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initialize the Signature object behaviour</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>NullSignature.</B><B><A HREF="../../../../jxta/security/impl/signature/NullSignature.html#update(byte[], int, int)">update</A></B>(byte[]&nbsp;inbuf,       int&nbsp;offset,       int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates data to be signed.</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>NullSignature.</B><B><A HREF="../../../../jxta/security/impl/signature/NullSignature.html#sign(byte[], int, int)">sign</A></B>(byte[]&nbsp;inbuff,     int&nbsp;offset,     int&nbsp;inLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;signs the last buffer of data (may be the only buffer)</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>NullSignature.</B><B><A HREF="../../../../jxta/security/impl/signature/NullSignature.html#verify(byte[], int, int, byte[], int, int)">verify</A></B>(byte[]&nbsp;inBuff,       int&nbsp;inOffset,       int&nbsp;inLength,       byte[]&nbsp;sigBuff,       int&nbsp;sigOffset,       int&nbsp;sigLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verifies a signature for last/only inBuff against the signature in sigBuff. </TD></TR></TABLE>&nbsp;<P><A NAME="jxta.security.mac"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A> in <A HREF="../../../../jxta/security/mac/package-summary.html">jxta.security.mac</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../jxta/security/mac/package-summary.html">jxta.security.mac</A> that throw <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></FONT></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>MAC.</B><B><A HREF="../../../../jxta/security/mac/MAC.html#init(byte, jxta.security.cipher.Key, byte[])">init</A></B>(byte&nbsp;theMode,     <A HREF="../../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A>&nbsp;theKey,     byte[]&nbsp;privateKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initialize the MAC object behaviour</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>MAC.</B><B><A HREF="../../../../jxta/security/mac/MAC.html#update(byte[], int, int)">update</A></B>(byte[]&nbsp;inbuf,       int&nbsp;offset,       int&nbsp;length)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updates data to be encrypted.</TD>

⌨️ 快捷键说明

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