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

📄 cryptoexception.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</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>MAC.</B><B><A HREF="../../../../jxta/security/mac/MAC.html#encrypt(byte[], int, int, byte[], int)">encrypt</A></B>(byte[]&nbsp;inbuff,        int&nbsp;offset,        int&nbsp;inLength,        byte[]&nbsp;macBuff,        int&nbsp;macOffset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encrypts the digest after updating 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>MAC.</B><B><A HREF="../../../../jxta/security/mac/MAC.html#verify(byte[], int, int, byte[], int, int)">verify</A></B>(byte[]&nbsp;inBuff,       int&nbsp;inOffset,       int&nbsp;inLength,       byte[]&nbsp;macBuff,       int&nbsp;macOffset,       int&nbsp;macLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verifies a MAC for last/only inBuff against the signature in sigBuff. </TD></TR></TABLE>&nbsp;<P><A NAME="jxta.security.publickey"><!-- --></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/publickey/package-summary.html">jxta.security.publickey</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/publickey/package-summary.html">jxta.security.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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>RSAPublicKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPublicKey.html#setPublicExponent(byte[], int, int)">setPublicExponent</A></B>(byte[]&nbsp;exponent,                  int&nbsp;offset,                  int&nbsp;length)</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       Public key: e, n       c = m**e mod n, e is exponent, n modulus</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>RSAPublicKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPublicKey.html#setModulus(byte[], int, int)">setModulus</A></B>(byte[]&nbsp;modulus,           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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setPrivateExponent(byte[], int, int)">setPrivateExponent</A></B>(byte[]&nbsp;exponent,                   int&nbsp;offset,                   int&nbsp;length)</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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setModulus(byte[], int, int)">setModulus</A></B>(byte[]&nbsp;modulus,           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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setPrimeP(byte[], int, int)">setPrimeP</A></B>(byte[]&nbsp;primeP,          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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setPrimeQ(byte[], int, int)">setPrimeQ</A></B>(byte[]&nbsp;primeQ,          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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setPrimeExponentP(byte[], int, int)">setPrimeExponentP</A></B>(byte[]&nbsp;primeExponentP,                  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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setPrimeExponentQ(byte[], int, int)">setPrimeExponentQ</A></B>(byte[]&nbsp;primeExponentQ,                  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>RSAPrivateKey.</B><B><A HREF="../../../../jxta/security/publickey/RSAPrivateKey.html#setCrtCoefficient(byte[], int, int)">setCrtCoefficient</A></B>(byte[]&nbsp;crtCoefficient,                  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>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPublicKey()">setPublicKey</A></B>()</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>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPublicKey(java.lang.Object)">setPublicKey</A></B>(java.lang.Object&nbsp;publickeyData)</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>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPublicKey(byte[])">setPublicKey</A></B>(byte[]&nbsp;nModulus)</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>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPrivateKey()">setPrivateKey</A></B>()</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>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPrivateKey(java.lang.Object)">setPrivateKey</A></B>(java.lang.Object&nbsp;privatekeyData)</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;java.lang.Object</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#getPublickey()">getPublickey</A></B>()</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;java.lang.Object</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#getPrivatekey()">getPrivatekey</A></B>()</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;byte[]</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#Algorithm(byte[], int, int, byte, boolean)">Algorithm</A></B>(byte[]&nbsp;data,          int&nbsp;offset,          int&nbsp;length,          byte&nbsp;type,          boolean&nbsp;encrypt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Algorithm:     Encrypt | decrypt, encrypt == true | false</TD></TR></TABLE>&nbsp;<P><A NAME="jxta.security.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/signature/package-summary.html">jxta.security.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/signature/package-summary.html">jxta.security.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>Signature.</B><B><A HREF="../../../../jxta/security/signature/Signature.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>Signature.</B><B><A HREF="../../../../jxta/security/signature/Signature.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>Signature.</B><B><A HREF="../../../../jxta/security/signature/Signature.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 digest after updating 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>Signature.</B><B><A HREF="../../../../jxta/security/signature/Signature.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

⌨️ 快捷键说明

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