what-the-bank/sources/o/JCV.java

84 lines
3.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import java.security.GeneralSecurityException;
import o.AbstractC16575pTO;
import o.NZO;
/* loaded from: classes2.dex */
public final class JCV extends AbstractC16575pTO<nnS> {
@Override // o.AbstractC16575pTO
public final /* bridge */ /* synthetic */ void b(nnS nns) throws GeneralSecurityException {
ifG.b(nns.version_);
}
/* JADX INFO: Access modifiers changed from: package-private */
public JCV() {
super(nnS.class, new AbstractC5281bqA<InterfaceC4280bVg, nnS>(InterfaceC4280bVg.class) { // from class: o.JCV.4
@Override // o.AbstractC5281bqA
public final /* synthetic */ InterfaceC4280bVg b(nnS nns) throws GeneralSecurityException {
nnS nns2 = nns;
C16344ndQ c16344ndQ = nns2.params_;
if (c16344ndQ == null) {
c16344ndQ = C16344ndQ.a();
}
String str = c16344ndQ.kekUri_;
InterfaceC4280bVg d = oOl.e(str).d(str);
C16344ndQ c16344ndQ2 = nns2.params_;
if (c16344ndQ2 == null) {
c16344ndQ2 = C16344ndQ.a();
}
Jzs jzs = c16344ndQ2.dekTemplate_;
if (jzs == null) {
jzs = Jzs.d();
}
return new C15797igv(jzs, d);
}
});
}
@Override // o.AbstractC16575pTO
public final NZO.Sts b() {
return NZO.Sts.REMOTE;
}
@Override // o.AbstractC16575pTO
public final AbstractC16575pTO.LWm<?, nnS> c() {
return new AbstractC16575pTO.LWm<C16344ndQ, nnS>(this, C16344ndQ.class) { // from class: o.JCV.2
private JCV e;
{
this.e = this;
}
@Override // o.AbstractC16575pTO.LWm
public final /* synthetic */ nnS a(C16344ndQ c16344ndQ) throws GeneralSecurityException {
return nnS.d().e(c16344ndQ).a().h();
}
@Override // o.AbstractC16575pTO.LWm
public final /* synthetic */ void d(C16344ndQ c16344ndQ) throws GeneralSecurityException {
C16344ndQ c16344ndQ2 = c16344ndQ;
if (c16344ndQ2.kekUri_.isEmpty() || c16344ndQ2.dekTemplate_ == null) {
throw new GeneralSecurityException("invalid key format: missing KEK URI or DEK template");
}
}
@Override // o.AbstractC16575pTO.LWm
public final /* synthetic */ C16344ndQ e(jra jraVar) throws InvalidProtocolBufferException {
return C16344ndQ.b(jraVar, C1458aEp.c());
}
};
}
@Override // o.AbstractC16575pTO
public final /* synthetic */ nnS b(jra jraVar) throws InvalidProtocolBufferException {
return nnS.d(jraVar, C1458aEp.c());
}
@Override // o.AbstractC16575pTO
public final String d() {
return "type.googleapis.com/google.crypto.tink.KmsEnvelopeAeadKey";
}
}