Skip to content

Commit

Permalink
Added support for ARM 64-bit
Browse files Browse the repository at this point in the history
Added support for ARM 64-bit devices.

Tested under:
```
uname -a
Linux ubuntu-linux-20-04-desktop 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 17:43:26 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
```
  • Loading branch information
KevinRoebert authored and gurpreet- committed Dec 22, 2021
1 parent 02f27be commit e6c193b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/goterl/lazysodium/utils/LibraryLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ public static String getSodiumPathInResources() {
}
}
if (Platform.isARM()) {
return getPath("armv6", "libsodium.so");
if(is64Bit) {
return getPath("arm64", "libsodium.so");
} else {
return getPath("armv6", "libsodium.so");
}
}
if (Platform.isLinux()) {
if (is64Bit) {
Expand Down
Binary file added src/main/resources/arm64/libsodium.so
Binary file not shown.
Binary file added src/test/resources/arm64/libsodium.so
Binary file not shown.

0 comments on commit e6c193b

Please sign in to comment.