diff --git a/libargon2_ffi.so b/libargon2_ffi.so new file mode 100755 index 0000000..7f19c99 Binary files /dev/null and b/libargon2_ffi.so differ diff --git a/test/kdbx4_test.dart b/test/kdbx4_test.dart index aba9315..71f98f7 100644 --- a/test/kdbx4_test.dart +++ b/test/kdbx4_test.dart @@ -42,7 +42,9 @@ typedef Argon2Hash = Pointer Function( class Argon2Test implements Argon2 { Argon2Test() { // final argon2lib = DynamicLibrary.open('libargon2.1.dylib'); - final argon2lib = DynamicLibrary.open('libargon2_ffi.dylib'); + final argon2lib = Platform.isMacOS + ? DynamicLibrary.open('libargon2_ffi.dylib') + : DynamicLibrary.open('libargon2_ffi.so'); _argon2hash = argon2lib .lookup>('hp_argon2_hash') .asFunction();