Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/java/com/lambdaworks/crypto/SCrypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ public class SCrypt {
native_library_loaded = loader.load("scrypt", true);
}

/**
* Tells if the native lib has been successfully loaded.
* @return <code>true</code> while working on native lib.
*/
public static boolean isNativeImpl(){
return native_library_loaded;
}

/**
* Implementation of the <a href="http://www.tarsnap.com/scrypt/scrypt.pdf"/>scrypt KDF</a>.
* Calls the native implementation {@link #scryptN} when the native library was successfully
Expand Down