package org.bouncycastle.crypto.params;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class MQVPublicParameters implements org.bouncycastle.crypto.CipherParameters {
    private org.bouncycastle.crypto.params.ECPublicKeyParameters a;
    private org.bouncycastle.crypto.params.ECPublicKeyParameters b;

    public MQVPublicParameters(org.bouncycastle.crypto.params.ECPublicKeyParameters eCPublicKeyParameters, org.bouncycastle.crypto.params.ECPublicKeyParameters eCPublicKeyParameters2) {
        if (eCPublicKeyParameters == null) {
            throw new java.lang.NullPointerException("staticPublicKey cannot be null");
        }
        if (eCPublicKeyParameters2 == null) {
            throw new java.lang.NullPointerException("ephemeralPublicKey cannot be null");
        }
        if (!eCPublicKeyParameters.g().equals(eCPublicKeyParameters2.g())) {
            throw new java.lang.IllegalArgumentException("Static and ephemeral public keys have different domain parameters");
        }
        this.a = eCPublicKeyParameters;
        this.b = eCPublicKeyParameters2;
    }

    public org.bouncycastle.crypto.params.ECPublicKeyParameters a() {
        return this.b;
    }

    public org.bouncycastle.crypto.params.ECPublicKeyParameters b() {
        return this.a;
    }
}
