20 lines
621 B
Java
20 lines
621 B
Java
|
package o;
|
||
|
|
||
|
import android.util.Base64;
|
||
|
import java.security.MessageDigest;
|
||
|
import java.security.NoSuchAlgorithmException;
|
||
|
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class bEA {
|
||
|
public static String e(byte[] bArr) {
|
||
|
try {
|
||
|
MessageDigest messageDigest = MessageDigest.getInstance(McElieceCCA2KeyGenParameterSpec.SHA256);
|
||
|
messageDigest.update(bArr);
|
||
|
return Base64.encodeToString(messageDigest.digest(), 11);
|
||
|
} catch (NoSuchAlgorithmException unused) {
|
||
|
return "";
|
||
|
}
|
||
|
}
|
||
|
}
|