- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
55 lines
1.5 KiB
Java
55 lines
1.5 KiB
Java
package com.google.android.gms.internal.fido;
|
|
|
|
import java.io.Serializable;
|
|
import java.security.MessageDigest;
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class zzga extends zzfq implements Serializable {
|
|
private final MessageDigest zza;
|
|
private final int zzb;
|
|
private final boolean zzc;
|
|
private final String zzd;
|
|
|
|
public zzga(String str, String str2) {
|
|
MessageDigest zzb = zzb("SHA-256");
|
|
this.zza = zzb;
|
|
this.zzb = zzb.getDigestLength();
|
|
this.zzd = "Hashing.sha256()";
|
|
this.zzc = zzc(zzb);
|
|
}
|
|
|
|
private static MessageDigest zzb(String str) {
|
|
try {
|
|
return MessageDigest.getInstance(str);
|
|
} catch (NoSuchAlgorithmException e) {
|
|
throw new AssertionError(e);
|
|
}
|
|
}
|
|
|
|
private static boolean zzc(MessageDigest messageDigest) {
|
|
try {
|
|
messageDigest.clone();
|
|
return true;
|
|
} catch (CloneNotSupportedException unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final String toString() {
|
|
return this.zzd;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzfu
|
|
public final zzfv zza() {
|
|
zzfy zzfyVar = null;
|
|
if (this.zzc) {
|
|
try {
|
|
return new zzfz((MessageDigest) this.zza.clone(), this.zzb, zzfyVar);
|
|
} catch (CloneNotSupportedException unused) {
|
|
}
|
|
}
|
|
return new zzfz(zzb(this.zza.getAlgorithm()), this.zzb, zzfyVar);
|
|
}
|
|
}
|