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

51 lines
1.8 KiB
Java

package com.google.android.gms.internal.ads;
import java.nio.ByteBuffer;
import java.security.GeneralSecurityException;
/* loaded from: classes3.dex */
public final class zzguo {
public static final void zza(ByteBuffer byteBuffer, ByteBuffer byteBuffer2, ByteBuffer byteBuffer3, int i) {
if (i < 0 || byteBuffer2.remaining() < i || byteBuffer3.remaining() < i || byteBuffer.remaining() < i) {
throw new IllegalArgumentException("That combination of buffers, offsets and length to xor result in out-of-bond accesses.");
}
for (int i2 = 0; i2 < i; i2++) {
byteBuffer.put((byte) (byteBuffer2.get() ^ byteBuffer3.get()));
}
}
public static byte[] zzb(byte[]... bArr) throws GeneralSecurityException {
int i = 0;
int i2 = 0;
while (true) {
if (i >= bArr.length) {
byte[] bArr2 = new byte[i2];
int i3 = 0;
for (byte[] bArr3 : bArr) {
int length = bArr3.length;
System.arraycopy(bArr3, 0, bArr2, i3, length);
i3 += length;
}
return bArr2;
}
int length2 = bArr[i].length;
if (i2 > Integer.MAX_VALUE - length2) {
throw new GeneralSecurityException("exceeded size limit");
}
i2 += length2;
i++;
}
}
public static final byte[] zzc(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
if (bArr.length - 16 < i) {
throw new IllegalArgumentException("That combination of buffers, offsets and length to xor result in out-of-bond accesses.");
}
byte[] bArr3 = new byte[16];
for (int i4 = 0; i4 < 16; i4++) {
bArr3[i4] = (byte) (bArr[i4 + i] ^ bArr2[i4]);
}
return bArr3;
}
}