Commit Graph

16 Commits

Author SHA1 Message Date
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