package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.security.InvalidAlgorithmParameterException; /* loaded from: classes.dex */ public final class zzev { private Integer zza; private Integer zzb; private Integer zzc; private zzew zzd; /* synthetic */ zzev(zzeu zzeuVar) { this.zza = null; this.zzb = null; this.zzc = null; this.zzd = zzew.zzc; } public final zzev zza(int i10) { this.zzb = 12; return this; } public final zzev zzb(int i10) { if (i10 != 16 && i10 != 24 && i10 != 32) { throw new InvalidAlgorithmParameterException(String.format("Invalid key size %d; only 16-byte, 24-byte and 32-byte AES keys are supported", Integer.valueOf(i10))); } this.zza = Integer.valueOf(i10); return this; } public final zzev zzc(int i10) { this.zzc = 16; return this; } public final zzev zzd(zzew zzewVar) { this.zzd = zzewVar; return this; } public final zzey zze() { Integer num = this.zza; if (num == null) { throw new GeneralSecurityException("Key size is not set"); } if (this.zzd == null) { throw new GeneralSecurityException("Variant is not set"); } if (this.zzb == null) { throw new GeneralSecurityException("IV size is not set"); } if (this.zzc == null) { throw new GeneralSecurityException("Tag size is not set"); } int intValue = num.intValue(); this.zzb.intValue(); this.zzc.intValue(); return new zzey(intValue, 12, 16, this.zzd, null); } private zzev() { this.zza = null; this.zzb = null; this.zzc = null; throw null; } }