package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.security.InvalidAlgorithmParameterException; /* loaded from: classes.dex */ public final class zzhu { private Integer zza; private zzhv zzb; /* synthetic */ zzhu(zzht zzhtVar) { this.zza = null; this.zzb = zzhv.zzc; } public final zzhu zza(int i10) { if (i10 != 32 && i10 != 48 && i10 != 64) { throw new InvalidAlgorithmParameterException(String.format("Invalid key size %d; only 32-byte, 48-byte and 64-byte AES-SIV keys are supported", Integer.valueOf(i10))); } this.zza = Integer.valueOf(i10); return this; } public final zzhu zzb(zzhv zzhvVar) { this.zzb = zzhvVar; return this; } public final zzhx zzc() { Integer num = this.zza; if (num == null) { throw new GeneralSecurityException("Key size is not set"); } if (this.zzb != null) { return new zzhx(num.intValue(), this.zzb, null); } throw new GeneralSecurityException("Variant is not set"); } private zzhu() { this.zza = null; throw null; } }