package org.bouncycastle.cert;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
class CertUtils {
    private static java.util.Set a = java.util.Collections.unmodifiableSet(new java.util.HashSet());
    private static java.util.List b = java.util.Collections.unmodifiableList(new java.util.ArrayList());

    static org.bouncycastle.asn1.ASN1Primitive a(byte[] bArr) throws java.io.IOException {
        org.bouncycastle.asn1.ASN1Primitive aSN1PrimitiveU = org.bouncycastle.asn1.ASN1Primitive.u(bArr);
        if (aSN1PrimitiveU != null) {
            return aSN1PrimitiveU;
        }
        throw new java.io.IOException("no content found");
    }

    static java.util.Date b(org.bouncycastle.asn1.ASN1GeneralizedTime aSN1GeneralizedTime) {
        try {
            return aSN1GeneralizedTime.B();
        } catch (java.text.ParseException e) {
            throw new java.lang.IllegalStateException("unable to recover date: " + e.getMessage());
        }
    }
}
