package org.bouncycastle.cms.bc;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
class EnvelopedDataHelper {
    protected static final java.util.Map a;
    protected static final java.util.Map b;
    private static final java.util.Set c;
    private static final java.util.Map d;

    static {
        java.util.HashMap map = new java.util.HashMap();
        a = map;
        java.util.HashMap map2 = new java.util.HashMap();
        b = map2;
        java.util.HashSet hashSet = new java.util.HashSet();
        c = hashSet;
        d = a();
        org.bouncycastle.asn1.ASN1ObjectIdentifier aSN1ObjectIdentifier = org.bouncycastle.cms.CMSAlgorithm.b;
        map.put(aSN1ObjectIdentifier, "DESEDE");
        org.bouncycastle.asn1.ASN1ObjectIdentifier aSN1ObjectIdentifier2 = org.bouncycastle.cms.CMSAlgorithm.f;
        map.put(aSN1ObjectIdentifier2, "AES");
        org.bouncycastle.asn1.ASN1ObjectIdentifier aSN1ObjectIdentifier3 = org.bouncycastle.cms.CMSAlgorithm.g;
        map.put(aSN1ObjectIdentifier3, "AES");
        org.bouncycastle.asn1.ASN1ObjectIdentifier aSN1ObjectIdentifier4 = org.bouncycastle.cms.CMSAlgorithm.h;
        map.put(aSN1ObjectIdentifier4, "AES");
        map2.put(aSN1ObjectIdentifier, "DESEDEMac");
        map2.put(aSN1ObjectIdentifier2, "AESMac");
        map2.put(aSN1ObjectIdentifier3, "AESMac");
        map2.put(aSN1ObjectIdentifier4, "AESMac");
        map2.put(org.bouncycastle.cms.CMSAlgorithm.c, "RC2Mac");
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.E);
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.N);
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.W);
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.F);
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.O);
        hashSet.add(org.bouncycastle.asn1.nist.NISTObjectIdentifiers.X);
    }

    private static java.util.Map a() {
        java.util.HashMap map = new java.util.HashMap();
        map.put(org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.J1, new org.bouncycastle.operator.bc.BcDigestProvider() { // from class: org.bouncycastle.cms.bc.EnvelopedDataHelper.1
            public org.bouncycastle.crypto.ExtendedDigest a(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) {
                return new org.bouncycastle.crypto.digests.SHA1Digest();
            }
        });
        map.put(org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.L1, new org.bouncycastle.operator.bc.BcDigestProvider() { // from class: org.bouncycastle.cms.bc.EnvelopedDataHelper.2
            public org.bouncycastle.crypto.ExtendedDigest a(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) {
                return new org.bouncycastle.crypto.digests.SHA224Digest();
            }
        });
        map.put(org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.M1, new org.bouncycastle.operator.bc.BcDigestProvider() { // from class: org.bouncycastle.cms.bc.EnvelopedDataHelper.3
            public org.bouncycastle.crypto.ExtendedDigest a(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) {
                return org.bouncycastle.crypto.digests.SHA256Digest.r();
            }
        });
        map.put(org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.N1, new org.bouncycastle.operator.bc.BcDigestProvider() { // from class: org.bouncycastle.cms.bc.EnvelopedDataHelper.4
            public org.bouncycastle.crypto.ExtendedDigest a(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) {
                return new org.bouncycastle.crypto.digests.SHA384Digest();
            }
        });
        map.put(org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.O1, new org.bouncycastle.operator.bc.BcDigestProvider() { // from class: org.bouncycastle.cms.bc.EnvelopedDataHelper.5
            public org.bouncycastle.crypto.ExtendedDigest a(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) {
                return new org.bouncycastle.crypto.digests.SHA512Digest();
            }
        });
        return java.util.Collections.unmodifiableMap(map);
    }
}
