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

23 lines
752 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}