package com.google.android.gms.internal.p002firebaseauthapi; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec; /* loaded from: classes2.dex */ public final /* synthetic */ class zzxf { public static String zza(zzxg zzxgVar, String str) { try { String str2 = new String(MessageDigest.getInstance(McElieceCCA2KeyGenParameterSpec.SHA256).digest(str.getBytes())); int length = str2.length(); int i = 0; while (i < length) { if (zzi.zza(str2.charAt(i))) { char[] charArray = str2.toCharArray(); while (i < length) { char c = charArray[i]; if (zzi.zza(c)) { charArray[i] = (char) (c ^ ' '); } i++; } return String.valueOf(charArray); } i++; } return str2; } catch (NoSuchAlgorithmException unused) { zzxg.zza.e("Failed to get SHA-256 MessageDigest", new Object[0]); return null; } } }