package org.bouncycastle.asn1.cms;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class SignedData extends org.bouncycastle.asn1.ASN1Object {
    private static final org.bouncycastle.asn1.ASN1Integer k = new org.bouncycastle.asn1.ASN1Integer(1);
    private static final org.bouncycastle.asn1.ASN1Integer l = new org.bouncycastle.asn1.ASN1Integer(3);
    private static final org.bouncycastle.asn1.ASN1Integer m = new org.bouncycastle.asn1.ASN1Integer(4);
    private static final org.bouncycastle.asn1.ASN1Integer n = new org.bouncycastle.asn1.ASN1Integer(5);
    private final org.bouncycastle.asn1.ASN1Integer a;
    private final org.bouncycastle.asn1.ASN1Set b;
    private final org.bouncycastle.asn1.cms.ContentInfo c;
    private final org.bouncycastle.asn1.ASN1Set d;
    private final boolean e;
    private final boolean f;
    private org.bouncycastle.asn1.ASN1Set g;
    private org.bouncycastle.asn1.ASN1Set h;
    private boolean i;
    private boolean j;

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        org.bouncycastle.asn1.ASN1EncodableVector aSN1EncodableVector = new org.bouncycastle.asn1.ASN1EncodableVector(6);
        aSN1EncodableVector.a(this.a);
        aSN1EncodableVector.a(this.b);
        aSN1EncodableVector.a(this.c);
        org.bouncycastle.asn1.ASN1Set aSN1Set = this.g;
        if (aSN1Set != null) {
            aSN1EncodableVector.a(this.i ? new org.bouncycastle.asn1.BERTaggedObject(false, 0, aSN1Set) : new org.bouncycastle.asn1.DERTaggedObject(false, 0, aSN1Set));
        }
        org.bouncycastle.asn1.ASN1Set aSN1Set2 = this.h;
        if (aSN1Set2 != null) {
            aSN1EncodableVector.a(this.j ? new org.bouncycastle.asn1.BERTaggedObject(false, 1, aSN1Set2) : new org.bouncycastle.asn1.DERTaggedObject(false, 1, aSN1Set2));
        }
        aSN1EncodableVector.a(this.d);
        return (!this.c.o() || this.e || this.f || this.j || this.i) ? new org.bouncycastle.asn1.BERSequence(aSN1EncodableVector) : new org.bouncycastle.asn1.DLSequence(aSN1EncodableVector);
    }
}
