diff --git a/src/main/java/com/lambdaworks/crypto/SCrypt.java b/src/main/java/com/lambdaworks/crypto/SCrypt.java index 6274238..e7b764a 100644 --- a/src/main/java/com/lambdaworks/crypto/SCrypt.java +++ b/src/main/java/com/lambdaworks/crypto/SCrypt.java @@ -28,6 +28,14 @@ public class SCrypt { native_library_loaded = loader.load("scrypt", true); } + /** + * Tells if the native lib has been successfully loaded. + * @return true while working on native lib. + */ + public static boolean isNativeImpl(){ + return native_library_loaded; + } + /** * Implementation of the scrypt KDF. * Calls the native implementation {@link #scryptN} when the native library was successfully