scrypt-jane icon indicating copy to clipboard operation
scrypt-jane copied to clipboard

Incompatible to scrypt reference implementation

Open smessmer opened this issue 9 years ago • 0 comments

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 for scrypt-jane: -DSCRYPT_SALSA -DSCRYPT_SHA256

Stream (hex) generated by scrypt reference implementation:

76596404E35C5745E7842435F299524D6DB0743BECD68AEFB0E5811465015F75F337B0AAE51EFF89359BC41FCFBB9CF0E935C5C2D649854827E170AC6F9AA86A3B08959425969536EB8D15A438B79E85E4FB77CBDD8BBFB3    

Stream (hex) generated by scrypt-jane:

15F92C2AC917F5FD864D6BC0D0FE15EDDFCAFE5908A0F2A0D078D4842F525AE52335FD1EE74FC6A4A1D6E44A3873630BE29FCAA81F3F613CE83D30899E69CA57E87157102CB526FEE834F81A3BCE487AF1DEA6CEB37008D3

smessmer avatar Nov 25 '15 13:11 smessmer