scrypt-jane
scrypt-jane copied to clipboard
A flexible implementation of Colin Percival's scrypt
e.g. iOS ARM. Fixes compile errors. @ryancdotorg requested that I PR this. probably fixes #12.
When linking example, I get "Undefined symbol detect_cpu in file scrypt-jane.o" error with gcc 4.5.2 on new sparc64 with Solaris 11. This is how I compile: gcc scrypt-jane.c -O3 -DSCRYPT_CHACHA...
To the preprocessor, Cygwin looks like OS_NIX which is mostly true. Cygwin is meant to look and feel like Unix but Cygwin applications run on Windows and require Windows-like naked...
Well, the title says it all.
When I try to compile with LTO enabled, the linker suddenly suddenly can't see the assembler function bodies (LTO pass probably removes them too early). I tried to set `__attribute__((used))`...
In scrypt-jane-portable-x86.h, the line ``` if ((regs.ecx & (1
scrypt-jane seems to generate a keystream different to the one generated by the reference implementation. Example: ``` N=1024, r=1, p=1, salt (hex) = "0AF023E55F804AD303C1DBDF6A2B2BED8CC1AB3D0B2F3312C073628DC041E6F3", pw (ascii) = "mypassword" Compiler parameters...
In "Using" section, the p and r parameters are in the wrong order.
This fixed compilation with `g++` for me (I think this is what you meant anyway).
R_X86_64_32S .rodata include in library requires -fPIC