Wrong hash on Android x64 devices
apperside opened this issue · 5 comments
Using arm64-v8a native libraries and android devices with x64 cpu the hash coming out from Scrypt function is different than the result obtained using 32 bit libraries
I can confirm this.
any solution yet???
I really don't know why, but changing in the make file the following line
CFLAGS := -std=c99 -Wall -O2
with this one
CFLAGS := -std=c99 -Wall -O3
works.
It really doesn't make any sense, but it works!
PS: in order to use this solution, you should use the ndk custom toolchain instead of the classic ndk build
For anyone using this library on Android, I suggest to use this fork instead
https://github.com/lhunath/scrypt
It has a full android ndk project setup, you just have to run ndk-build and it will generate all .so files.
NOTE: you have to change the Application.mk file in order to generate them for all platforms
Hoho