52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.HashMap;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class glH {
|
||
|
private static HashMap<String, C15288gmc> b = new HashMap<>();
|
||
|
private static HashMap<String, String> c = new HashMap<>();
|
||
|
|
||
|
static {
|
||
|
b.put("SHA1WITHRSA", glU.f);
|
||
|
b.put("SHA256WITHRSA", glU.i);
|
||
|
b.put("SHA1WITHRSAANDMGF1", glU.j);
|
||
|
b.put("SHA256WITHRSAANDMGF1", glU.h);
|
||
|
b.put("SHA1WITHECDSA", glU.b);
|
||
|
b.put("SHA224WITHECDSA", glU.a);
|
||
|
b.put("SHA256WITHECDSA", glU.g);
|
||
|
c.put("SHA1WITHECDSA", "SHA1WITHECDSA");
|
||
|
c.put("SHA224WITHECDSA", "SHA224WITHECDSA");
|
||
|
c.put("SHA256WITHECDSA", "SHA256WITHECDSA");
|
||
|
}
|
||
|
|
||
|
public static C15288gmc a(String str) {
|
||
|
HashMap<String, C15288gmc> hashMap = b;
|
||
|
String str2 = c.get(str.toUpperCase());
|
||
|
if (str2 == null) {
|
||
|
str2 = str.toUpperCase();
|
||
|
}
|
||
|
C15288gmc c15288gmc = hashMap.get(str2);
|
||
|
if (c15288gmc != null) {
|
||
|
return c15288gmc;
|
||
|
}
|
||
|
throw new IllegalArgumentException("Unsupported algorithmName: ".concat(String.valueOf(str)));
|
||
|
}
|
||
|
|
||
|
public static String e(String str) {
|
||
|
String str2 = c.get(str.toUpperCase());
|
||
|
return str2 != null ? str2 : str.toUpperCase();
|
||
|
}
|
||
|
|
||
|
public static String c(C15288gmc c15288gmc) {
|
||
|
for (String str : b.keySet()) {
|
||
|
if (b.get(str).d.equals(c15288gmc.d)) {
|
||
|
return str;
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("Unknown OIDField: ");
|
||
|
sb.append(c15288gmc.d);
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
}
|