36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.security.GeneralSecurityException;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzpy implements zzap {
|
|
private final zzqk zza;
|
|
private final zzbm zzb;
|
|
private final int zzc;
|
|
|
|
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzap
|
|
public final byte[] zza(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
|
int length = bArr.length;
|
|
int i = this.zzc;
|
|
if (length < i) {
|
|
throw new GeneralSecurityException("ciphertext too short");
|
|
}
|
|
byte[] copyOfRange = Arrays.copyOfRange(bArr, 0, length - i);
|
|
this.zzb.zza(Arrays.copyOfRange(bArr, length - this.zzc, length), zzpp.zzc(bArr2, copyOfRange, Arrays.copyOf(ByteBuffer.allocate(8).putLong(0L).array(), 8)));
|
|
return this.zza.zza(copyOfRange);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzap
|
|
public final byte[] zzb(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
|
throw null;
|
|
}
|
|
|
|
public zzpy(zzqk zzqkVar, zzbm zzbmVar, int i) {
|
|
this.zza = zzqkVar;
|
|
this.zzb = zzbmVar;
|
|
this.zzc = i;
|
|
}
|
|
}
|