Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Wrong hash on Android x64 devices #36

Open
apperside opened this issue Mar 14, 2016 · 5 comments
Open

Wrong hash on Android x64 devices #36

apperside opened this issue Mar 14, 2016 · 5 comments

Comments

@apperside
Copy link

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

@schildbach
Copy link

I can confirm this.

@apperside
Copy link
Author

any solution yet???

@apperside
Copy link
Author

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

@apperside
Copy link
Author

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

@waeeajjah
Copy link

Hoho

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants