Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/ads/zzgoc.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

53 lines
1.6 KiB
Java

package com.google.android.gms.internal.ads;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
/* loaded from: classes3.dex */
public final class zzgoc {
private Integer zza = null;
private Integer zzb = null;
private zzgod zzc = zzgod.zzd;
private zzgoc() {
}
public /* synthetic */ zzgoc(zzgoe zzgoeVar) {
}
public final zzgoc zzc(zzgod zzgodVar) {
this.zzc = zzgodVar;
return this;
}
public final zzgoc zza(int i) throws GeneralSecurityException {
if (i != 16 && i != 32) {
throw new InvalidAlgorithmParameterException(String.format("Invalid key size %d; only 128-bit and 256-bit AES keys are supported", Integer.valueOf(i * 8)));
}
this.zza = Integer.valueOf(i);
return this;
}
public final zzgoc zzb(int i) throws GeneralSecurityException {
if (i >= 10 && i <= 16) {
this.zzb = Integer.valueOf(i);
return this;
}
throw new GeneralSecurityException("Invalid tag size for AesCmacParameters: " + i);
}
public final zzgof zzd() throws GeneralSecurityException {
Integer num = this.zza;
if (num == null) {
throw new GeneralSecurityException("key size not set");
}
if (this.zzb == null) {
throw new GeneralSecurityException("tag size not set");
}
if (this.zzc != null) {
return new zzgof(num.intValue(), this.zzb.intValue(), this.zzc, null);
}
throw new GeneralSecurityException("variant not set");
}
}