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

📄 cryptoexception.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
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>&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/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>&nbsp;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&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>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.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></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>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.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>NullMAC.</B><B><A HREF="../../../../jxta/security/impl/mac/NullMAC.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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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&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 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>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.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></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>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#encrypt(byte[], int, int, byte[], int)">encrypt</A></B>(byte[]&nbsp;inbuf,        int&nbsp;offset,        int&nbsp;inLength,        byte[]&nbsp;macBuf,        int&nbsp;macOffset)</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>MACAlgorithm.</B><B><A HREF="../../../../jxta/security/impl/mac/MACAlgorithm.html#verify(byte[], int, int, byte[], int, int)">verify</A></B>(byte[]&nbsp;inBuf,       int&nbsp;inOffset,       int&nbsp;inLength,       byte[]&nbsp;macBuf,       int&nbsp;macOffset,       int&nbsp;macLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verifies a MAC after updating last/only inBuf against the MAC in macBuf. </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/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>&nbsp;cipherAlg,             byte&nbsp;theType,             <A HREF="../../../../jxta/security/hash/Hash.html" title="interface in jxta.security.hash">Hash</A>&nbsp;theDigest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constructor</TD></TR></TABLE>&nbsp;<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>&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/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>&nbsp;void</CODE></FONT></TD><TD><CODE><B>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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>NullRSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/NullRSA.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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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[]&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;Encrypt/decrypt byte array.  </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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPrivateKey()">setPrivateKey</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;privatekeyData)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set private key from saved values</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>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPublicKey()">setPublicKey</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B>RSA.</B><B><A HREF="../../../../jxta/security/impl/publickey/RSA.html#setPublicKey(byte[])">setPublicKey</A></B>(byte[]&nbsp;nModulus)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;publickeyData)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the RSA public key data</TD></TR>

⌨️ 快捷键说明

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