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