81 lines
3.0 KiB
Java
81 lines
3.0 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 RWX extends AbstractC16575pTO<neg> {
|
||
|
@Override // o.AbstractC16575pTO
|
||
|
public final /* synthetic */ void b(neg negVar) throws GeneralSecurityException {
|
||
|
neg negVar2 = negVar;
|
||
|
ifG.b(negVar2.version_);
|
||
|
if (negVar2.keyValue_.d() != 32) {
|
||
|
throw new GeneralSecurityException("invalid XChaCha20Poly1305Key: incorrect key length");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public RWX() {
|
||
|
super(neg.class, new AbstractC5281bqA<InterfaceC4280bVg, neg>(InterfaceC4280bVg.class) { // from class: o.RWX.4
|
||
|
@Override // o.AbstractC5281bqA
|
||
|
public final /* synthetic */ InterfaceC4280bVg b(neg negVar) throws GeneralSecurityException {
|
||
|
return new JNP(negVar.keyValue_.c());
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO
|
||
|
public final NZO.Sts b() {
|
||
|
return NZO.Sts.SYMMETRIC;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO
|
||
|
public final AbstractC16575pTO.LWm<?, neg> c() {
|
||
|
return new AbstractC16575pTO.LWm<C16513ovd, neg>(this, C16513ovd.class) { // from class: o.RWX.1
|
||
|
private RWX d;
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO.LWm
|
||
|
public final /* synthetic */ neg a(C16513ovd c16513ovd) throws GeneralSecurityException {
|
||
|
return neg.a().c().d(jra.e(YTf.b(32))).h();
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO.LWm
|
||
|
public final /* bridge */ /* synthetic */ void d(C16513ovd c16513ovd) throws GeneralSecurityException {
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO.LWm
|
||
|
public final Map<String, AbstractC16575pTO.LWm.RVV<C16513ovd>> d() throws GeneralSecurityException {
|
||
|
HashMap hashMap = new HashMap();
|
||
|
hashMap.put("XCHACHA20_POLY1305", new AbstractC16575pTO.LWm.RVV(C16513ovd.b(), RyZ.IeS.TINK));
|
||
|
hashMap.put("XCHACHA20_POLY1305_RAW", new AbstractC16575pTO.LWm.RVV(C16513ovd.b(), RyZ.IeS.RAW));
|
||
|
return Collections.unmodifiableMap(hashMap);
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO.LWm
|
||
|
public final /* synthetic */ C16513ovd e(jra jraVar) throws InvalidProtocolBufferException {
|
||
|
return C16513ovd.c(jraVar, C1458aEp.c());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO
|
||
|
public final /* synthetic */ neg b(jra jraVar) throws InvalidProtocolBufferException {
|
||
|
return neg.c(jraVar, C1458aEp.c());
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16575pTO
|
||
|
public final String d() {
|
||
|
return "type.googleapis.com/google.crypto.tink.XChaCha20Poly1305Key";
|
||
|
}
|
||
|
}
|