Commit Graph

36 Commits

Author SHA1 Message Date
Vincent Hanquez
b5dbc9caae add internalUpdateUnsafe to process data more efficiently at the expense of threads.
internalUpdateUnsafe, just like internalUpdate update the context, but
does it using the unsafe key word for the ffi binding
2015-02-14 23:39:06 +00:00
Vincent Hanquez
90d02607ba merge crypto-numbers minus all the random parts 2015-02-09 05:47:11 +00: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
09e8670b70 add bang for unlifted bindings 2015-02-08 13:25:04 +00:00
Vincent Hanquez
70e2321d95 update architectures of modules to separate IO and mutable parts from the immutable part 2015-02-08 12:03:00 +00:00
Vincent Hanquez
bc75680084 fix Kekkak 2015-02-08 11:14:20 +00:00
Vincent Hanquez
36ad1997e3 update module texts 2015-02-08 11:02:42 +00:00
Vincent Hanquez
cd870d4259 really fix build issue with ghc 7.4 2015-01-27 16:26:01 +00:00
Vincent Hanquez
9754f8b31f add bytestring instances for old ghc 2015-01-27 16:04:04 +00:00
Vincent Hanquez
033b9ced81 add support for curve 25519 2015-01-27 06:25:41 +00:00
Vincent Hanquez
ec26f9a25b add initial support for curve25519 2015-01-27 06:20:19 +00:00
Vincent Hanquez
6f877c84c3 create a module to put all the compat necessary for running over a wide range of versions 2015-01-27 05:58:06 +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
bd1c010df9 just like poly1305, add a way to mac multiple inputs 2014-11-09 09:59:35 +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
adca793a9f Reorganize entropy interfaces.
* separate pool into a different module
* only export by default a simple gathering function
* export an unsafe module with all the memory methods
2014-08-25 08:00:10 +01:00
Vincent Hanquez
1f9d7af56f add a working implementation of scrypt. 2014-08-23 16:36:29 +01:00
Vincent Hanquez
903ff726a2 add kekkak 2014-08-14 13:47:41 +02: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
9c9007c3b0 use securemem abstraction and byteable helpers in RC4 2014-07-21 11:17:42 +01:00
Vincent Hanquez
f2bfecfa3e add RC4 2014-07-21 10:58:42 +01:00
Vincent Hanquez
5097e18d30 Merge branch 'entropy'
Conflicts:
	cryptonite.cabal
2014-07-19 15:07:59 +01:00
Vincent Hanquez
6005eca7bd make the entropy gathering simpler for certain setup, and cleanup a bit 2014-07-19 15:06:39 +01:00
Vincent Hanquez
a0ce598e37 add PBKDF2 2014-07-18 15:26:01 +01:00
Vincent Hanquez
5e23ef92a5 add HMAC 2014-07-09 13:15:49 +01:00
Vincent Hanquez
4e955ad505 merge entropy from crypto-random 2014-07-09 08:12:34 +01:00
Vincent Hanquez
09feb59f62 merge cryptohash 2014-07-07 14:55:55 +01:00
Vincent Hanquez
336093c53b Merge branch 'salsa'
Conflicts:
	README.md
	cryptonite.cabal
	tests/Tests.hs
2014-07-07 08:10:31 +01:00
Vincent Hanquez
16eb6fa387 Add Salsa20 cipher. most is copied from the ChaCha implementation 2014-07-07 08:04:57 +01:00
Vincent Hanquez
7c03f3314b faster one-pass auth call. 2014-07-07 04:41:35 +01:00
Vincent Hanquez
c4c0802f80 Add working implementation of poly1305 with 1 test vector. 2014-07-06 15:44:54 +01:00
Vincent Hanquez
9fd200e407 add Poly1305 module (non-exposed) 2014-07-06 14:06:20 +01:00
Vincent Hanquez
fb85f8639f initial commit. 2014-07-04 14:58:01 +01:00