Skip to content

Commit

Permalink
Merge branch 'pr-1954'
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Oct 27, 2023
2 parents fe32d98 + f78bb44 commit ad61a6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions iped-engine/src/main/java/iped/engine/core/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down Expand Up @@ -158,6 +159,16 @@ public class Manager {
private static final String appWinExeFileName = "IPED-SearchApp.exe";

static {

// installs the AmazonCorrettoCryptoProvider if it is available
try {
Class<?> clazz = Class.forName("com.amazon.corretto.crypto.provider.AmazonCorrettoCryptoProvider");
Method method = clazz.getMethod("install");
method.invoke(null);
} catch (Exception e) {
LOGGER.debug("AmazonCorrettoCryptoProvider not installed", e);
}

if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
Security.addProvider(new BouncyCastleProvider());
}
Expand Down

0 comments on commit ad61a6f

Please sign in to comment.