Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/ads/zzgez.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

73 lines
2.3 KiB
Java

package com.google.android.gms.internal.ads;
import java.security.GeneralSecurityException;
/* loaded from: classes3.dex */
public final class zzgez {
private zzgfk zza = null;
private zzgvp zzb = null;
private zzgvp zzc = null;
private Integer zzd = null;
private zzgez() {
}
public /* synthetic */ zzgez(zzgfa zzgfaVar) {
}
public final zzgez zza(zzgvp zzgvpVar) {
this.zzb = zzgvpVar;
return this;
}
public final zzgez zzb(zzgvp zzgvpVar) {
this.zzc = zzgvpVar;
return this;
}
public final zzgez zzc(Integer num) {
this.zzd = num;
return this;
}
public final zzgez zzd(zzgfk zzgfkVar) {
this.zza = zzgfkVar;
return this;
}
public final zzgfb zze() throws GeneralSecurityException {
zzgvo zzb;
zzgfk zzgfkVar = this.zza;
if (zzgfkVar == null) {
throw new GeneralSecurityException("Cannot build without parameters");
}
zzgvp zzgvpVar = this.zzb;
if (zzgvpVar == null || this.zzc == null) {
throw new GeneralSecurityException("Cannot build without key material");
}
if (zzgfkVar.zzb() != zzgvpVar.zza()) {
throw new GeneralSecurityException("AES key size mismatch");
}
if (zzgfkVar.zzc() != this.zzc.zza()) {
throw new GeneralSecurityException("HMAC key size mismatch");
}
if (this.zza.zza() && this.zzd == null) {
throw new GeneralSecurityException("Cannot create key without ID requirement with parameters with ID requirement");
}
if (!this.zza.zza() && this.zzd != null) {
throw new GeneralSecurityException("Cannot create key with ID requirement with parameters without ID requirement");
}
if (this.zza.zzh() == zzgfi.zzc) {
zzb = zzgml.zza;
} else if (this.zza.zzh() == zzgfi.zzb) {
zzb = zzgml.zza(this.zzd.intValue());
} else {
if (this.zza.zzh() != zzgfi.zza) {
throw new IllegalStateException("Unknown AesCtrHmacAeadParameters.Variant: ".concat(String.valueOf(this.zza.zzh())));
}
zzb = zzgml.zzb(this.zzd.intValue());
}
return new zzgfb(this.zza, this.zzb, this.zzc, zzb, this.zzd, null);
}
}