package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.security.InvalidAlgorithmParameterException; /* loaded from: classes2.dex */ public final class zzhs { private Integer zza; private Integer zzb; private zzht zzc; private zzhs() { this.zza = null; this.zzb = null; throw null; } public final zzhs zzb(int i) throws GeneralSecurityException { if (i < 10 || i > 16) { throw new GeneralSecurityException("Invalid tag size for AesCmacParameters: " + i); } this.zzb = Integer.valueOf(i); return this; } public final zzhv zzd() throws GeneralSecurityException { Integer num = this.zza; if (num == null || this.zzb == null) { throw new GeneralSecurityException("Key size and/or tag size not set"); } return new zzhv(num.intValue(), this.zzb.intValue(), this.zzc, null); } public final zzhs zza(int i) throws GeneralSecurityException { if (i == 16 || i == 32) { this.zza = Integer.valueOf(i); return this; } throw new InvalidAlgorithmParameterException(String.format("Invalid key size %d; only 128-bit and 256-bit AES keys are supported", Integer.valueOf(i * 8))); } public final zzhs zzc(zzht zzhtVar) { this.zzc = zzhtVar; return this; } /* JADX INFO: Access modifiers changed from: package-private */ public /* synthetic */ zzhs(zzhr zzhrVar) { this.zza = null; this.zzb = null; this.zzc = zzht.zzd; } }