45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import java.io.UnsupportedEncodingException;
|
||
|
import org.json.JSONException;
|
||
|
import org.json.JSONObject;
|
||
|
|
||
|
/* renamed from: o.dDk, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class C8184dDk implements YUz {
|
||
|
private final String a;
|
||
|
private InterfaceC14883gax c;
|
||
|
private final Context e;
|
||
|
|
||
|
private InterfaceC14883gax b() {
|
||
|
String c = C17249vHB.c(this.e, this.a, "agc_plugin_", "crypto_component");
|
||
|
if (c == null) {
|
||
|
return null;
|
||
|
}
|
||
|
try {
|
||
|
JSONObject jSONObject = new JSONObject(new String(KzA.b(c), "utf-8"));
|
||
|
return new C15841iyo(new WuW(jSONObject.getString("rx"), jSONObject.getString("ry"), jSONObject.getString("rz"), jSONObject.getString("salt"), jSONObject.getString("algorithm"), jSONObject.getInt("iterationCount")));
|
||
|
} catch (UnsupportedEncodingException | IllegalArgumentException | JSONException e) {
|
||
|
e.getMessage();
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.YUz
|
||
|
public final String e(String str, String str2) {
|
||
|
if (this.c == null) {
|
||
|
this.c = b();
|
||
|
}
|
||
|
if (this.c == null) {
|
||
|
this.c = new C0340Ell(this.e, this.a).c();
|
||
|
}
|
||
|
return this.c.c(C17249vHB.c(this.e, this.a, "agc_plugin_", str), str2);
|
||
|
}
|
||
|
|
||
|
public C8184dDk(Context context, String str) {
|
||
|
this.e = context;
|
||
|
this.a = str;
|
||
|
}
|
||
|
}
|