Skip to content

Commit

Permalink
Add log to see which provider was initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
LossyDragon committed Jan 1, 2025
1 parent 06060bf commit 17ab3d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CryptoHelper {
if (Utils.getOSType() == EOSType.AndroidUnknown) {
String androidSecProv;
try {
// Try SpongyCastle (This will slowly be phased out. Noted 1/1/2025)
// Try SpongyCastle (This will be phased out someday. Noted 1/1/2025)
var provider = (Class<? extends Provider>) Class.forName("org.spongycastle.jce.provider.BouncyCastleProvider");
Security.insertProviderAt(provider.getDeclaredConstructor().newInstance(), 1);
androidSecProv = "SC";
Expand All @@ -54,6 +54,8 @@ public class CryptoHelper {
} catch (Exception e) {
throw new SecurityException("Couldn't create security provider", e);
}

logger.debug("Using security provider: " + SEC_PROV);
}

public static byte[] shaHash(byte[] input) throws NoSuchAlgorithmException {
Expand Down

0 comments on commit 17ab3d0

Please sign in to comment.