what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzhl.java

62 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import java.nio.ByteBuffer;
import java.security.GeneralSecurityException;
/* loaded from: classes2.dex */
public final class zzhl {
private zzhv zza = null;
private zzqw zzb = null;
private Integer zzc = null;
private zzhl() {
}
public final zzhn zzd() throws GeneralSecurityException {
zzqw zzqwVar;
zzqv zzb;
zzhv zzhvVar = this.zza;
if (zzhvVar == null || (zzqwVar = this.zzb) == null) {
throw new GeneralSecurityException("Cannot build without parameters and/or key material");
}
if (zzhvVar.zza() == zzqwVar.zza()) {
if (!zzhvVar.zzd() || this.zzc != null) {
if (this.zza.zzd() || this.zzc == null) {
if (this.zza.zzc() == zzht.zzd) {
zzb = zzqv.zzb(new byte[0]);
} else if (this.zza.zzc() == zzht.zzc || this.zza.zzc() == zzht.zzb) {
zzb = zzqv.zzb(ByteBuffer.allocate(5).put((byte) 0).putInt(this.zzc.intValue()).array());
} else if (this.zza.zzc() == zzht.zza) {
zzb = zzqv.zzb(ByteBuffer.allocate(5).put((byte) 1).putInt(this.zzc.intValue()).array());
} else {
throw new IllegalStateException("Unknown AesCmacParametersParameters.Variant: ".concat(String.valueOf(String.valueOf(this.zza.zzc()))));
}
return new zzhn(this.zza, this.zzb, zzb, this.zzc, null);
}
throw new GeneralSecurityException("Cannot create key with ID requirement with format without ID requirement");
}
throw new GeneralSecurityException("Cannot create key without ID requirement with format with ID requirement");
}
throw new GeneralSecurityException("Key size mismatch");
}
public final zzhl zzc(zzhv zzhvVar) {
this.zza = zzhvVar;
return this;
}
public final zzhl zzb(Integer num) {
this.zzc = num;
return this;
}
public final zzhl zza(zzqw zzqwVar) throws GeneralSecurityException {
this.zzb = zzqwVar;
return this;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzhl(zzhk zzhkVar) {
}
}