package org.bouncycastle.cms;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
class OriginatorId implements org.bouncycastle.util.Selector {
    private byte[] a;
    private org.bouncycastle.asn1.x500.X500Name b;
    private java.math.BigInteger c;

    public OriginatorId(org.bouncycastle.asn1.x500.X500Name x500Name, java.math.BigInteger bigInteger, byte[] bArr) {
        b(x500Name, bigInteger);
        c(bArr);
    }

    private boolean a(java.lang.Object obj, java.lang.Object obj2) {
        if (obj != null) {
            return obj.equals(obj2);
        }
        return obj2 == null;
    }

    private void b(org.bouncycastle.asn1.x500.X500Name x500Name, java.math.BigInteger bigInteger) {
        this.b = x500Name;
        this.c = bigInteger;
    }

    private void c(byte[] bArr) {
        this.a = bArr;
    }

    public boolean Y0(java.lang.Object obj) {
        return false;
    }

    public java.lang.Object clone() {
        return new org.bouncycastle.cms.OriginatorId(this.b, this.c, this.a);
    }

    public boolean equals(java.lang.Object obj) {
        if (!(obj instanceof org.bouncycastle.cms.OriginatorId)) {
            return false;
        }
        org.bouncycastle.cms.OriginatorId originatorId = (org.bouncycastle.cms.OriginatorId) obj;
        return org.bouncycastle.util.Arrays.d(this.a, originatorId.a) && a(this.c, originatorId.c) && a(this.b, originatorId.b);
    }

    public int hashCode() {
        int iQ = org.bouncycastle.util.Arrays.Q(this.a);
        java.math.BigInteger bigInteger = this.c;
        if (bigInteger != null) {
            iQ ^= bigInteger.hashCode();
        }
        org.bouncycastle.asn1.x500.X500Name x500Name = this.b;
        return x500Name != null ? x500Name.hashCode() ^ iQ : iQ;
    }
}
