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

32 lines
1.1 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import java.security.GeneralSecurityException;
import java.util.Arrays;
/* loaded from: classes2.dex */
final class zzfi implements zzex {
private final zzes zza;
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzex
public final byte[] zza(byte[] bArr, zzey zzeyVar) throws GeneralSecurityException {
byte[] zza = zzqt.zza(zzeyVar.zza().zzc(), bArr);
byte[] zzc = zzpp.zzc(bArr, zzeyVar.zzb().zzc());
byte[] zzd = zzff.zzd(zzff.zzb);
zzes zzesVar = this.zza;
return zzesVar.zzb(null, zza, "eae_prk", zzc, "shared_secret", zzd, zzesVar.zza());
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzex
public final byte[] zzb() throws GeneralSecurityException {
if (Arrays.equals(this.zza.zzc(), zzff.zzf)) {
return zzff.zzb;
}
throw new GeneralSecurityException("Could not determine HPKE KEM ID");
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzfi(zzes zzesVar) {
this.zza = zzesVar;
}
}