what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzeo.java

66 lines
1.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import java.security.GeneralSecurityException;
import java.security.NoSuchAlgorithmException;
/* loaded from: classes2.dex */
final class zzeo {
public static void zza(zzma zzmaVar) throws GeneralSecurityException {
zzpx.zzl(zzc(zzmaVar.zze().zzf()));
zzb(zzmaVar.zze().zzg());
if (zzmaVar.zzh() == 2) {
throw new GeneralSecurityException("unknown EC point format");
}
zzbz.zzc(zzmaVar.zza().zzd());
}
public static String zzb(int i) throws NoSuchAlgorithmException {
int i2 = i - 2;
if (i2 == 1) {
return "HmacSha1";
}
if (i2 == 2) {
return "HmacSha384";
}
if (i2 == 3) {
return "HmacSha256";
}
if (i2 == 4) {
return "HmacSha512";
}
if (i2 == 5) {
return "HmacSha224";
}
throw new NoSuchAlgorithmException("hash unsupported for HMAC: ".concat(Integer.toString(zzmq.zza(i))));
}
public static int zzc(int i) throws GeneralSecurityException {
int i2 = i - 2;
if (i2 == 2) {
return 1;
}
if (i2 == 3) {
return 2;
}
if (i2 == 4) {
return 3;
}
throw new GeneralSecurityException("unknown curve type: ".concat(Integer.toString(zzml.zza(i))));
}
public static int zzd(int i) throws GeneralSecurityException {
int i2 = i - 2;
int i3 = 1;
if (i2 != 1) {
i3 = 2;
if (i2 != 2) {
if (i2 == 3) {
return 3;
}
throw new GeneralSecurityException("unknown point format: ".concat(Integer.toString(zzlr.zza(i))));
}
}
return i3;
}
}