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