what-the-bank/sources/org/bouncycastle/crypto/params/RSAKeyGenerationParameters....

32 lines
944 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.params;
import java.math.BigInteger;
import java.security.SecureRandom;
import org.bouncycastle.crypto.KeyGenerationParameters;
/* loaded from: classes6.dex */
public class RSAKeyGenerationParameters extends KeyGenerationParameters {
private int certainty;
private BigInteger publicExponent;
public BigInteger getPublicExponent() {
return this.publicExponent;
}
public int getCertainty() {
return this.certainty;
}
public RSAKeyGenerationParameters(BigInteger bigInteger, SecureRandom secureRandom, int i, int i2) {
super(secureRandom, i);
if (i < 12) {
throw new IllegalArgumentException("key strength too small");
}
if (!bigInteger.testBit(0)) {
throw new IllegalArgumentException("public exponent cannot be even");
}
this.publicExponent = bigInteger;
this.certainty = i2;
}
}