// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.its;

import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
import java.util.HashMap;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.HashAlgorithm;
import java.util.Map;

public class ITSAlgorithmUtils
{
    private static final Map<Object, HashAlgorithm> algoMap;
    
    public static HashAlgorithm getHashAlgorithm(final ASN1ObjectIdentifier asn1ObjectIdentifier) {
        return ITSAlgorithmUtils.algoMap.get(asn1ObjectIdentifier);
    }
    
    static {
        (algoMap = new HashMap<Object, HashAlgorithm>()).put(NISTObjectIdentifiers.id_sha256, HashAlgorithm.sha256);
        ITSAlgorithmUtils.algoMap.put(NISTObjectIdentifiers.id_sha384, HashAlgorithm.sha384);
    }
}
