what-the-bank/sources/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java

23 lines
702 B
Java

package org.bouncycastle.crypto.params;
import java.security.SecureRandom;
import org.bouncycastle.crypto.KeyGenerationParameters;
/* loaded from: classes6.dex */
public class DHKeyGenerationParameters extends KeyGenerationParameters {
private DHParameters params;
public DHParameters getParameters() {
return this.params;
}
static int getStrength(DHParameters dHParameters) {
return dHParameters.getL() != 0 ? dHParameters.getL() : dHParameters.getP().bitLength();
}
public DHKeyGenerationParameters(SecureRandom secureRandom, DHParameters dHParameters) {
super(secureRandom, getStrength(dHParameters));
this.params = dHParameters;
}
}