package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.security.NoSuchAlgorithmException; /* loaded from: classes.dex */ final class zziu { public static void zza(zzrk zzrkVar) { zzvg.zzi(zzc(zzrkVar.zze().zzf())); zzb(zzrkVar.zze().zzg()); if (zzrkVar.zzh() == 2) { throw new GeneralSecurityException("unknown EC point format"); } zzcr.zzb(zzrkVar.zza().zzd()); } public static String zzb(int i10) { int i11 = i10 - 2; if (i11 == 1) { return "HmacSha1"; } if (i11 == 2) { return "HmacSha384"; } if (i11 == 3) { return "HmacSha256"; } if (i11 == 4) { return "HmacSha512"; } if (i11 == 5) { return "HmacSha224"; } throw new NoSuchAlgorithmException("hash unsupported for HMAC: ".concat(Integer.toString(zzsa.zza(i10)))); } public static int zzc(int i10) { int i11 = i10 - 2; if (i11 == 2) { return 1; } if (i11 == 3) { return 2; } if (i11 == 4) { return 3; } throw new GeneralSecurityException("unknown curve type: ".concat(Integer.toString(zzrv.zza(i10)))); } public static int zzd(int i10) { int i11 = i10 - 2; int i12 = 1; if (i11 != 1) { i12 = 2; if (i11 != 2) { if (i11 == 3) { return 3; } throw new GeneralSecurityException("unknown point format: ".concat(Integer.toString(zzrb.zza(i10)))); } } return i12; } }