package org.bouncycastle.crypto.generators;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class ElGamalParametersGenerator {
    private int a;
    private int b;
    private java.security.SecureRandom c;

    public org.bouncycastle.crypto.params.ElGamalParameters a() {
        java.math.BigInteger[] bigIntegerArrA = org.bouncycastle.crypto.generators.DHParametersHelper.a(this.a, this.b, this.c);
        java.math.BigInteger bigInteger = bigIntegerArrA[0];
        return new org.bouncycastle.crypto.params.ElGamalParameters(bigInteger, org.bouncycastle.crypto.generators.DHParametersHelper.b(bigInteger, bigIntegerArrA[1], this.c));
    }

    public void b(int i, int i2, java.security.SecureRandom secureRandom) {
        this.a = i;
        this.b = i2;
        this.c = secureRandom;
    }
}
