package ma;

import java.security.GeneralSecurityException;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public final class o {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final o f30545b = new o();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final HashMap f30546a = new HashMap();

    public final synchronized void a(ea.h hVar, Class cls) {
        try {
            n nVar = (n) this.f30546a.get(cls);
            if (nVar != null && !nVar.equals(hVar)) {
                throw new GeneralSecurityException("Different key creator for parameters class already inserted");
            }
            this.f30546a.put(cls, hVar);
        } catch (Throwable th) {
            throw th;
        }
    }
}
