Luke Taylor
6d33b66245
BCrypt module doc updates
...
- Add doctest style example usage
- List most relevant functions
- Reformat comments
- Minor corrections and additions
2015-09-01 15:22:58 +01:00
Luke Taylor
f346c46243
Add BCrypt module doc and a validatePasswordEither fn
2015-08-26 10:33:36 +01:00
Luke Taylor
39d5eb13fe
Add bcrypt password hashing and validation API
2015-08-26 10:33:36 +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
30b7b6412a
align module imports
2015-05-11 09:34:26 +01:00
Vincent Hanquez
9ae9e38ce2
move to memory stuff
2015-05-09 14:23:32 +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
db7c3bbb4f
[hash] massive overhaul of the hash interface
...
use the typeclass for the lowest IO impure C bindings definitions,
and define the pure interface as generic on top of this.
At the same time define an Hash.IO interface to allow mutable manipulations
of hash contextes when necessary.
Use HashAlgorithm instead of HashFunction in the [PubKey] sections
Tweak the HMAC, PBKDF2 functions to be more efficient and use the new interface
2015-04-30 06:18:07 +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
Vincent Hanquez
04912a180a
correct a typo in PBKDF2
2014-07-27 11:07:59 -07:00
Vincent Hanquez
480ff26a34
cleanup in PBKDF2
2014-07-23 05:58:22 -07:00
Vincent Hanquez
a0ce598e37
add PBKDF2
2014-07-18 15:26:01 +01:00