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

76 lines
3.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import java.security.GeneralSecurityException;
/* loaded from: classes2.dex */
final class zzia {
public static final int zza = 0;
private static final zzqv zzb;
private static final zzgv zzc;
private static final zzgr zzd;
private static final zzfz zze;
private static final zzfv zzf;
static {
zzqv zzb2 = zzhj.zzb("type.googleapis.com/google.crypto.tink.AesCmacKey");
zzb = zzb2;
zzc = zzgv.zza(new zzgt() { // from class: com.google.android.gms.internal.firebase-auth-api.zzhw
}, zzhv.class, zzgz.class);
zzd = zzgr.zza(new zzgp() { // from class: com.google.android.gms.internal.firebase-auth-api.zzhx
}, zzb2, zzgz.class);
zze = zzfz.zza(new zzfx() { // from class: com.google.android.gms.internal.firebase-auth-api.zzhy
}, zzhn.class, zzgy.class);
zzf = zzfv.zzb(new zzft() { // from class: com.google.android.gms.internal.firebase-auth-api.zzhz
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzft
public final zzaw zza(zzha zzhaVar, zzca zzcaVar) {
zzht zzhtVar;
int i = zzia.zza;
if (!((zzgy) zzhaVar).zzg().equals("type.googleapis.com/google.crypto.tink.AesCmacKey")) {
throw new IllegalArgumentException("Wrong type URL in call to AesCmacParameters.parseParameters");
}
try {
zzjn zzd2 = zzjn.zzd(((zzgy) zzhaVar).zze(), zzacs.zza());
if (zzd2.zza() == 0) {
zzhs zzhsVar = new zzhs(null);
zzhsVar.zza(zzd2.zzf().zzd());
zzhsVar.zzb(zzd2.zze().zza());
zzoy zzc2 = ((zzgy) zzhaVar).zzc();
zzoy zzoyVar = zzoy.UNKNOWN_PREFIX;
int ordinal = zzc2.ordinal();
if (ordinal == 1) {
zzhtVar = zzht.zza;
} else if (ordinal == 2) {
zzhtVar = zzht.zzc;
} else if (ordinal == 3) {
zzhtVar = zzht.zzd;
} else {
if (ordinal != 4) {
throw new GeneralSecurityException("Unable to parse OutputPrefixType: " + zzc2.zza());
}
zzhtVar = zzht.zzb;
}
zzhsVar.zzc(zzhtVar);
zzhv zzd3 = zzhsVar.zzd();
zzhl zzhlVar = new zzhl(null);
zzhlVar.zzc(zzd3);
zzhlVar.zza(zzqw.zzb(zzd2.zzf().zzt(), zzcaVar));
zzhlVar.zzb(((zzgy) zzhaVar).zzf());
return zzhlVar.zzd();
}
throw new GeneralSecurityException("Only version 0 keys are accepted");
} catch (zzadn | IllegalArgumentException unused) {
throw new GeneralSecurityException("Parsing AesCmacKey failed");
}
}
}, zzb2, zzgy.class);
}
public static void zza() throws GeneralSecurityException {
zzgn zzb2 = zzgn.zzb();
zzb2.zzf(zzc);
zzb2.zze(zzd);
zzb2.zzd(zze);
zzb2.zzc(zzf);
}
}