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

📄 ccmparameters.java

📁 J2ME加密算法的代码!里面包括常用的算法
💻 JAVA
字号:
package org.bouncycastle.crypto.params;import org.bouncycastle.crypto.CipherParameters;public class CCMParameters    implements CipherParameters{    private byte[] associatedText;    private byte[] nonce;    private KeyParameter key;    private int macSize;    /**     * Base constructor.     *      * @param key key to be used by underlying cipher     * @param macSize macSize in bits     * @param nonce nonce to be used     * @param associatedText associated text, if any     */    public CCMParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)    {        this.key = key;        this.nonce = nonce;        this.macSize = macSize;        this.associatedText = associatedText;    }        public KeyParameter getKey()    {        return key;    }        public int getMacSize()    {        return macSize;    }        public byte[] getAssociatedText()    {        return associatedText;    }        public byte[] getNonce()    {        return nonce;    }}

⌨️ 快捷键说明

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