38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import java.security.GeneralSecurityException;
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzif extends zzgw {
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public zzif(Class cls) {
|
|
super(cls);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzgw
|
|
public final /* synthetic */ Object zza(zzaek zzaekVar) throws GeneralSecurityException {
|
|
zzmt zzmtVar = (zzmt) zzaekVar;
|
|
int zzf = zzmtVar.zzf().zzf();
|
|
SecretKeySpec secretKeySpec = new SecretKeySpec(zzmtVar.zzg().zzt(), "HMAC");
|
|
int zza = zzmtVar.zzf().zza();
|
|
int i = zzf - 2;
|
|
if (i == 1) {
|
|
return new zzqo(new zzqn("HMACSHA1", secretKeySpec), zza);
|
|
}
|
|
if (i == 2) {
|
|
return new zzqo(new zzqn("HMACSHA384", secretKeySpec), zza);
|
|
}
|
|
if (i == 3) {
|
|
return new zzqo(new zzqn("HMACSHA256", secretKeySpec), zza);
|
|
}
|
|
if (i == 4) {
|
|
return new zzqo(new zzqn("HMACSHA512", secretKeySpec), zza);
|
|
}
|
|
if (i == 5) {
|
|
return new zzqo(new zzqn("HMACSHA224", secretKeySpec), zza);
|
|
}
|
|
throw new GeneralSecurityException("unknown hash");
|
|
}
|
|
}
|