23 lines
752 B
Java
23 lines
752 B
Java
|
package org.bouncycastle.crypto.params;
|
||
|
|
||
|
import java.security.SecureRandom;
|
||
|
import org.bouncycastle.crypto.KeyGenerationParameters;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class CramerShoupKeyGenerationParameters extends KeyGenerationParameters {
|
||
|
private CramerShoupParameters params;
|
||
|
|
||
|
public CramerShoupParameters getParameters() {
|
||
|
return this.params;
|
||
|
}
|
||
|
|
||
|
static int getStrength(CramerShoupParameters cramerShoupParameters) {
|
||
|
return cramerShoupParameters.getP().bitLength();
|
||
|
}
|
||
|
|
||
|
public CramerShoupKeyGenerationParameters(SecureRandom secureRandom, CramerShoupParameters cramerShoupParameters) {
|
||
|
super(secureRandom, getStrength(cramerShoupParameters));
|
||
|
this.params = cramerShoupParameters;
|
||
|
}
|
||
|
}
|