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

📄 rsakeygenerationparameters.java

📁 kmlnjlkj nlkjlkjkljl okopokipoipo oipipipo i
💻 JAVA
字号:
package org.bouncycastle.crypto.params;import java.math.BigInteger;import java.security.SecureRandom;import org.bouncycastle.crypto.KeyGenerationParameters;public class RSAKeyGenerationParameters    extends KeyGenerationParameters{    private BigInteger publicExponent;    private int certainty;    public RSAKeyGenerationParameters(        BigInteger      publicExponent,        SecureRandom    random,        int             strength,        int             certainty)    {        super(random, strength);        if (strength < 12)        {            throw new IllegalArgumentException("key strength too small");        }        //        // public exponent cannot be even        //        if (!publicExponent.testBit(0))         {                throw new IllegalArgumentException("public exponent cannot be even");        }                this.publicExponent = publicExponent;        this.certainty = certainty;    }    public BigInteger getPublicExponent()    {        return publicExponent;    }    public int getCertainty()    {        return certainty;    }}

⌨️ 快捷键说明

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