📄 cryptoexception.html
字号:
Uses of <A HREF="../../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A> in <A HREF="../../../../jxta/security/impl/mac/package-summary.html">jxta.security.impl.mac</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/impl/mac/package-summary.html">jxta.security.impl.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> void</CODE></FONT></TD><TD><CODE><B>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.html#init(byte, jxta.security.cipher.Key, byte[])">init</A></B>(byte theMode, <A HREF="../../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A> theKey, byte[] privateKey)</CODE><BR> initialize the MAC 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>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.html#update(byte[], int, int)">update</A></B>(byte[] inbuf, int offset, int length)</CODE><BR> updates data to be encrypted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.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>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#init(byte, jxta.security.cipher.Key, byte[])">init</A></B>(byte theMode, <A HREF="../../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A> theKey, byte[] privateKey)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#update(byte[], int, int)">update</A></B>(byte[] inbuf, int offset, int length)</CODE><BR> updates data to be encrypted. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#encrypt(byte[], int, int, byte[], int)">encrypt</A></B>(byte[] inbuf, int offset, int inLength, byte[] macBuf, int macOffset)</CODE><BR> 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> boolean</CODE></FONT></TD><TD><CODE><B>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#verify(byte[], int, int, byte[], int, int)">verify</A></B>(byte[] inBuf, int inOffset, int inLength, byte[] macBuf, int macOffset, int macLength)</CODE><BR> Verifies a MAC after updating last/only inBuf against the MAC in macBuf. </TD></TR></TABLE> <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/mac/package-summary.html">jxta.security.impl.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><CODE><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#MACAlgorithm(jxta.security.cipher.Cipher, byte, jxta.security.hash.Hash)">MACAlgorithm</A></B>(<A HREF="../../../../jxta/security/cipher/Cipher.html" title="interface in jxta.security.cipher">Cipher</A> cipherAlg, byte theType, <A HREF="../../../../jxta/security/hash/Hash.html" title="interface in jxta.security.hash">Hash</A> theDigest)</CODE><BR> constructor</TD></TR></TABLE> <P><A NAME="jxta.security.impl.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/impl/publickey/package-summary.html">jxta.security.impl.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/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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#Algorithm(byte[], int, int, byte, boolean)">Algorithm</A></B>(byte[] data, int offset, int length, byte type, boolean encrypt)</CODE><BR> Encrypt/decrypt byte array. </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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPrivateKey()">setPrivateKey</A></B>()</CODE><BR> Compute the private key from the public key Here, we compute d = 1/e mod((p-1)(q-1)), and store the remainder of the CRT parameters</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPrivateKey(java.lang.Object)">setPrivateKey</A></B>(java.lang.Object privatekeyData)</CODE><BR> Set private key from saved values</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPublicKey()">setPublicKey</A></B>()</CODE><BR> Compute the public key given the key size in bits Here, we compute p, q, and n = pq.</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPublicKey(byte[])">setPublicKey</A></B>(byte[] nModulus)</CODE><BR> Set the public key from a saved value for public key</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPublicKey(java.lang.Object)">setPublicKey</A></B>(java.lang.Object publickeyData)</CODE><BR> Set the public key from a saved value for public key</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#getPublickey()">getPublickey</A></B>()</CODE><BR> get the RSA public key data</TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -