package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.security.InvalidAlgorithmParameterException; /* loaded from: classes.dex */ public final class zzee { private Integer zza; private Integer zzb; private Integer zzc; private zzef zzd; /* synthetic */ zzee(zzed zzedVar) { this.zza = null; this.zzb = null; this.zzc = null; this.zzd = zzef.zzc; } public final zzee zza(int i10) { if (i10 != 12 && i10 != 16) { throw new GeneralSecurityException(String.format("Invalid IV size in bytes %d; acceptable values have 12 or 16 bytes", Integer.valueOf(i10))); } this.zzb = Integer.valueOf(i10); return this; } public final zzee 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 zzee zzc(int i10) { this.zzc = 16; return this; } public final zzee zzd(zzef zzefVar) { this.zzd = zzefVar; return this; } public final zzeh zze() { Integer num = this.zza; if (num == null) { throw new GeneralSecurityException("Key size is not set"); } if (this.zzb == null) { throw new GeneralSecurityException("IV size is not set"); } if (this.zzd == null) { throw new GeneralSecurityException("Variant is not set"); } if (this.zzc == null) { throw new GeneralSecurityException("Tag size is not set"); } int intValue = num.intValue(); int intValue2 = this.zzb.intValue(); this.zzc.intValue(); return new zzeh(intValue, intValue2, 16, this.zzd, null); } private zzee() { this.zza = null; this.zzb = null; this.zzc = null; throw null; } }