📄 cryptoexception.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] inbuff, int offset, int inLength, byte[] macBuff, int macOffset)</CODE><BR> 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> 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[] inBuff, int inOffset, int inLength, byte[] macBuff, int macOffset, int macLength)</CODE><BR> Verifies a MAC for last/only inBuff against the signature in sigBuff. </TD></TR></TABLE> <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> <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> 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[] exponent, int offset, int length)</CODE><BR> 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> 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[] modulus, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] exponent, int offset, int length)</CODE><BR> 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> 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[] modulus, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] primeP, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] primeQ, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] primeExponentP, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] primeExponentQ, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] crtCoefficient, int offset, int length)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPublicKey()">setPublicKey</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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 publickeyData)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPublicKey(byte[])">setPublicKey</A></B>(byte[] nModulus)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PublicKeyAlgorithm.</B><B><A HREF="../../../../jxta/security/publickey/PublicKeyAlgorithm.html#setPrivateKey()">setPrivateKey</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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 privatekeyData)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] data, int offset, int length, byte type, boolean encrypt)</CODE><BR> The Algorithm: Encrypt | decrypt, encrypt == true | false</TD></TR></TABLE> <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> <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> void</CODE></FONT></TD><TD><CODE><B>Signature.</B><B><A HREF="../../../../jxta/security/signature/Signature.html#init(byte)">init</A></B>(byte theMode)</CODE><BR> initialize the Signature object behaviour</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] inbuf, int offset, int length)</CODE><BR> updates data to be signed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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[] inbuff, int offset, int inLength)</CODE><BR> 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> 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[] inBuff, int inOffset, int inLength, byte[] sigBuff, int sigOffset, int sigLength)</CODE><BR>  
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -