Luke Taylor
de17b66e31
Fix buffer length in scrypt
...
The temporary XY buffer passed to the scrypt_smix C function should be
256r+64 bytes in length, but the Haskell code was only allocating 256r
bytes, causing the additional 64 to be written past the end of the
buffer.
See #91 .
2016-06-13 21:08:06 +01:00
Vincent Hanquez
ead424f793
[Scrypt] reduce line size of comment
2015-07-29 10:03:43 +01:00
Vincent Hanquez
02956f9ef0
[KDF] move PBKDF2 and Scrypt to not be pinned to ByteString
2015-05-22 15:19:42 +01:00
Vincent Hanquez
937b5d08dd
[scrypt] cleanup module / extensiotn
2015-05-03 14:31:14 +01:00
Vincent Hanquez
c23ddb2eaa
[PBKDF2] make the code more friendly to a future mutable PRF.
...
Prevent doing B.take . B.concat by allocating only once the output buffer
2015-05-03 08:17:03 +01:00
Vincent Hanquez
4cde4f9311
[scrypt] remove the need for byteable by using the more generic bytearray
2015-05-02 15:44:33 +01:00
Vincent Hanquez
969daf5af1
move more compat things into Internal.Compat.
2015-04-05 07:46:34 +01:00
Vincent Hanquez
7c6adacef9
add signature to compat popCount
2015-02-08 14:41:07 +00:00
Vincent Hanquez
d2a119d1ad
add popCount for old version
2015-02-08 13:30:10 +00:00
Vincent Hanquez
a98b7548b2
fix integral type for older version of memcpy. fix ghc 7.4.x
2014-11-09 14:15:55 +00:00
Vincent Hanquez
022f16eeef
While it's probably safe, don't use a "pure" bytestring as a buffer.
...
reallocate a new buffer and copy the old thing inside.
2014-10-04 22:37:31 +01:00
Vincent Hanquez
1f9d7af56f
add a working implementation of scrypt.
2014-08-23 16:36:29 +01:00
Vincent Hanquez
c84acf079e
add Scrypt placeholder
2014-07-27 11:09:45 -07:00