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

45 lines
1.5 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
/* loaded from: classes2.dex */
final class zzeq implements zzet {
private final int zza;
/* JADX INFO: Access modifiers changed from: package-private */
public zzeq(int i) throws InvalidAlgorithmParameterException {
if (i == 16 || i == 32) {
this.zza = i;
} else {
throw new InvalidAlgorithmParameterException("Unsupported key length: " + i);
}
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzet
public final byte[] zzb() throws GeneralSecurityException {
int i = this.zza;
if (i == 16) {
return zzff.zzi;
}
if (i == 32) {
return zzff.zzj;
}
throw new GeneralSecurityException("Could not determine HPKE AEAD ID");
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzet
public final byte[] zzc(byte[] bArr, byte[] bArr2, byte[] bArr3, byte[] bArr4) throws GeneralSecurityException {
int length = bArr.length;
if (length != this.zza) {
throw new InvalidAlgorithmParameterException("Unexpected key length: " + length);
}
return new zzdl(bArr, false).zza(bArr2, bArr3, bArr4);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzet
public final int zza() {
return this.zza;
}
}