Commit Graph

73 Commits

Author SHA1 Message Date
Vincent Hanquez
fb7855985e reorder extension 2015-04-07 06:52:54 +01:00
Vincent Hanquez
abacea200d further fix 2015-04-05 12:32:40 +01:00
Vincent Hanquez
6eae9b0557 fix warnings 2015-04-05 12:19:26 +01:00
Vincent Hanquez
ed4da5734b fix old build 2015-04-05 11:17:52 +01:00
Vincent Hanquez
e74448aeb4 cryptonitize AES, and add foreign function interfaces to it (not exported). 2015-04-05 10:44:23 +01:00
Vincent Hanquez
c5c04176de remove unnecessary separator 2015-04-05 07:47:27 +01:00
Vincent Hanquez
3308ec0d92 cleanup extensions in modules 2015-04-05 07:47:16 +01:00
Vincent Hanquez
969daf5af1 move more compat things into Internal.Compat. 2015-04-05 07:46:34 +01:00
Vincent Hanquez
57aa7ce098 use more Internal.Compat to get UnsafeDoIO 2015-04-05 07:46:18 +01:00
Vincent Hanquez
827407fbed use BinaryPolynomial when it is one in F2m 2015-04-03 08:17:47 +01:00
Vincent Hanquez
b556bdb649 add missing modules 2015-04-03 07:33:16 +01:00
Vincent Hanquez
b1e222cf3d merge crypto-pubkey-types and crypto-pubkey
adapt CPRG to MonadRandom
2015-04-03 07:33:16 +01:00
Vincent Hanquez
abb470f8b7 add Crypto.Random abstraction interface 2015-04-03 07:28:07 +01:00
Vincent Hanquez
ac77a20c06 add simple ChaChaRNG 2015-04-03 07:27:44 +01:00
Vincent Hanquez
b570388917 add simple chacha interface 2015-04-03 07:27:19 +01:00
Vincent Hanquez
bae4bcd064 add new function. including commented out split for now. 2015-04-03 07:26:46 +01:00
Vincent Hanquez
9fd91da855 refactor AFIS import list 2015-04-03 07:26:25 +01:00
Vincent Hanquez
16d24161e1 add a wrapper to memcpy that does the right things with various versions of memcpy 2015-04-03 07:26:09 +01:00
Vincent Hanquez
a82a544fec add a simple alias to SecureMem for future refactoring
Signed-off-by: Vincent Hanquez <vincent@snarc.org>
2015-04-03 07:25:22 +01:00
Vincent Hanquez
c991abda23 fix another old version's memcpy 2015-03-30 16:02:00 +01:00
Vincent Hanquez
4a6bfe98fc fix old version 2015-03-30 15:50:05 +01:00
Vincent Hanquez
5f2aa94355 add AFIS 2015-03-30 15:08:11 +01:00
Vincent Hanquez
c3d9570881 re-add the primitives to generate primes and test for prime. 2015-03-29 10:55:46 +01:00
Vincent Hanquez
d9b16a529e re-enable number generation 2015-03-29 10:43:45 +01:00
Vincent Hanquez
be3eacc068 ask for Functor for a MonadRandom too. 2015-03-29 10:43:24 +01:00
Vincent Hanquez
f3bf67df99 add withByteArray 2015-03-29 10:43:11 +01:00
Vincent Hanquez
37557af615 add length abstraction for byte array 2015-03-29 09:16:44 +01:00
Vincent Hanquez
a4d3dc4d10 add a simple random abstraction 2015-03-29 09:09:55 +01:00
Vincent Hanquez
d9ba6034c4 correct haddock 2015-03-29 09:08:34 +01:00
Vincent Hanquez
41039c7b5b add a simple abstraction for bytearray allocation+fill 2015-03-29 09:00:09 +01:00
Vincent Hanquez
1a8a5aef62 remove useless function 2015-03-29 08:59:47 +01:00
Vincent Hanquez
95160dee56 update modules to use more efficient byte array memory allocation and representation for contextes 2015-03-08 15:18:28 +08:00
Vincent Hanquez
7d28eb3630 add a more efficient types than bytestring. 2015-03-08 15:16:55 +08:00
Vincent Hanquez
c2283d51ae make description more precise 2015-03-08 15:15:37 +08:00
Vincent Hanquez
bbbbdc4b39 use directly compat module instead of Crypto.Hash.Internal 2015-02-15 00:39:34 +00:00
Vincent Hanquez
effca93970 align dollar sign 2015-02-15 00:14:07 +00:00
Vincent Hanquez
41361968f6 add bytes manipulation function 2015-02-15 00:13:51 +00:00
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