package org.bouncycastle.asn1.cms;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class AuthEnvelopedDataParser {
    private org.bouncycastle.asn1.ASN1SequenceParser a;
    private org.bouncycastle.asn1.ASN1Encodable b;
    private boolean c;

    public org.bouncycastle.asn1.ASN1SetParser a() {
        if (this.b == null) {
            this.b = this.a.readObject();
        }
        org.bouncycastle.asn1.ASN1Encodable aSN1Encodable = this.b;
        if (aSN1Encodable instanceof org.bouncycastle.asn1.ASN1TaggedObjectParser) {
            this.b = null;
            return (org.bouncycastle.asn1.ASN1SetParser) org.bouncycastle.asn1.ASN1Util.l((org.bouncycastle.asn1.ASN1TaggedObjectParser) aSN1Encodable, 1, false, 17);
        }
        if (this.c) {
            return null;
        }
        throw new org.bouncycastle.asn1.ASN1ParsingException("authAttrs must be present with non-data content");
    }

    public org.bouncycastle.asn1.ASN1OctetString b() {
        if (this.b == null) {
            this.b = this.a.readObject();
        }
        org.bouncycastle.asn1.ASN1Encodable aSN1Encodable = this.b;
        this.b = null;
        return org.bouncycastle.asn1.ASN1OctetString.y(aSN1Encodable.j());
    }
}
