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

81 lines
2.9 KiB
Java

package o;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import java.security.GeneralSecurityException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import o.AbstractC16575pTO;
import o.NZO;
import o.RyZ;
/* loaded from: classes2.dex */
public final class laj extends AbstractC16575pTO<kUV> {
@Override // o.AbstractC16575pTO
public final /* synthetic */ void b(kUV kuv) throws GeneralSecurityException {
kUV kuv2 = kuv;
ifG.b(kuv2.version_);
if (kuv2.keyValue_.d() != 32) {
throw new GeneralSecurityException("invalid ChaCha20Poly1305Key: incorrect key length");
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public laj() {
super(kUV.class, new AbstractC5281bqA<InterfaceC4280bVg, kUV>(InterfaceC4280bVg.class) { // from class: o.laj.3
@Override // o.AbstractC5281bqA
public final /* synthetic */ InterfaceC4280bVg b(kUV kuv) throws GeneralSecurityException {
return new C4689bes(kuv.keyValue_.c());
}
});
}
@Override // o.AbstractC16575pTO
public final NZO.Sts b() {
return NZO.Sts.SYMMETRIC;
}
@Override // o.AbstractC16575pTO
public final AbstractC16575pTO.LWm<?, kUV> c() {
return new AbstractC16575pTO.LWm<C0316EDr, kUV>(this, C0316EDr.class) { // from class: o.laj.4
private laj e;
{
this.e = this;
}
@Override // o.AbstractC16575pTO.LWm
public final /* synthetic */ kUV a(C0316EDr c0316EDr) throws GeneralSecurityException {
return kUV.b().c().e(jra.e(YTf.b(32))).h();
}
@Override // o.AbstractC16575pTO.LWm
public final /* bridge */ /* synthetic */ void d(C0316EDr c0316EDr) throws GeneralSecurityException {
}
@Override // o.AbstractC16575pTO.LWm
public final Map<String, AbstractC16575pTO.LWm.RVV<C0316EDr>> d() throws GeneralSecurityException {
HashMap hashMap = new HashMap();
hashMap.put("CHACHA20_POLY1305", new AbstractC16575pTO.LWm.RVV(C0316EDr.b(), RyZ.IeS.TINK));
hashMap.put("CHACHA20_POLY1305_RAW", new AbstractC16575pTO.LWm.RVV(C0316EDr.b(), RyZ.IeS.RAW));
return Collections.unmodifiableMap(hashMap);
}
@Override // o.AbstractC16575pTO.LWm
public final /* synthetic */ C0316EDr e(jra jraVar) throws InvalidProtocolBufferException {
return C0316EDr.e(jraVar, C1458aEp.c());
}
};
}
@Override // o.AbstractC16575pTO
public final /* synthetic */ kUV b(jra jraVar) throws InvalidProtocolBufferException {
return kUV.d(jraVar, C1458aEp.c());
}
@Override // o.AbstractC16575pTO
public final String d() {
return "type.googleapis.com/google.crypto.tink.ChaCha20Poly1305Key";
}
}