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

23 lines
702 B
Java
Raw 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 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;
}
}