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

35 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import java.security.InvalidKeyException;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class zzdq extends zzdn {
public zzdq(byte[] bArr, int i) throws InvalidKeyException {
super(bArr, i);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzdn
final int zza() {
return 24;
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzdn
final int[] zzb(int[] iArr, int i) {
int length = iArr.length;
if (length != 6) {
throw new IllegalArgumentException(String.format("XChaCha20 uses 192-bit nonces, but got a %d-bit nonce", Integer.valueOf(length * 32)));
}
int[] iArr2 = new int[16];
zzdj.zzb(r0, this.zza);
int[] iArr3 = {0, 0, 0, 0, iArr3[12], iArr3[13], iArr3[14], iArr3[15], 0, 0, 0, 0, iArr[0], iArr[1], iArr[2], iArr[3]};
zzdj.zzc(iArr3);
zzdj.zzb(iArr2, Arrays.copyOf(iArr3, 8));
iArr2[12] = i;
iArr2[13] = 0;
iArr2[14] = iArr[4];
iArr2[15] = iArr[5];
return iArr2;
}
}