Commit Graph

348 Commits

Author SHA1 Message Date
Vincent Hanquez
fdf735d4e2 [PubKey] move ElGamal to use HashAlgorithm and ByteArrayAccess. 2015-05-12 07:01:20 +01:00
Vincent Hanquez
5d2b417854 [pubkey] make DSA and ECDSA ByteString free 2015-05-11 14:18:49 +01:00
Vincent Hanquez
d035e3a3bc [number] properly handle gmp 2015-05-11 11:39:09 +01:00
Vincent Hanquez
f84d60e69f [QA] allow emptyDataDecls 2015-05-11 10:17:43 +01:00
Vincent Hanquez
b3ebf3f3b8 [number] fix import 2015-05-11 10:07:15 +01:00
Vincent Hanquez
eaad39a1af remove need for bytearray to marshall Word8s into a Word64 2015-05-11 10:04:56 +01:00
Vincent Hanquez
30b7b6412a align module imports 2015-05-11 09:34:26 +01:00
Vincent Hanquez
deb07b2c6c [QA] add one more exception 2015-05-11 09:34:18 +01:00
Vincent Hanquez
761574a65f [internal] remove old cryptohash modules 2015-05-11 09:34:01 +01:00
Vincent Hanquez
9567fa2526 [number] almost rewrite all serialization to be faster and less depends on random versions 2015-05-11 09:28:48 +01:00
Vincent Hanquez
9983822fba [QA] add extensions exceptions 2015-05-11 07:32:24 +01:00
Vincent Hanquez
228f1ab938 [number] further push the compat cleanup 2015-05-11 07:32:13 +01:00
Vincent Hanquez
8c07305deb [number] fix compat with a missing do. 2015-05-11 07:31:52 +01:00
Vincent Hanquez
ee3e5e69bf [number] move some number primitive to use compat without CPP 2015-05-11 07:11:38 +01:00
Vincent Hanquez
03fe63b05a [number] further remove gcde_binary 2015-05-11 07:10:52 +01:00
Vincent Hanquez
4bcf193a12 [number] further remove gcde_binary 2015-05-11 07:10:38 +01:00
Vincent Hanquez
47afc1720d [number] remove gcde_binary 2015-05-11 07:10:15 +01:00
Vincent Hanquez
5c0daae88c [number] add simple combinator 2015-05-11 07:09:44 +01:00
Vincent Hanquez
427541064d [number] add further gmp optional compat 2015-05-11 07:09:30 +01:00
Vincent Hanquez
ed8fbe8f69 [Number] add module to cleanup CPP around 2015-05-10 15:27:52 +01:00
Vincent Hanquez
e6a7cc0dab [Tests] split ChaCha in own module 2015-05-10 08:00:05 +01:00
Vincent Hanquez
7f39b15e91 [Tests] move Salsa tests 2015-05-10 07:57:20 +01:00
Vincent Hanquez
bdb463cc91 move Poly1305 tests to its own file 2015-05-10 07:50:18 +01:00
Vincent Hanquez
357a296e38 [internal] compile tests with memory is its not built-in.
also move the flag to the end of the library
2015-05-10 07:01:12 +01:00
Vincent Hanquez
9ae9e38ce2 move to memory stuff 2015-05-09 14:23:32 +01:00
Vincent Hanquez
68e3a58be7 import memory as builtin 2015-05-09 14:23:10 +01:00
Vincent Hanquez
ac16029f07 [internal] update convert4To32 to prevent an issue on ghc 7.0 and 7.4 2015-05-07 13:54:05 +01:00
Vincent Hanquez
e82c0524e4 [tests] rename Hash module 2015-05-06 11:48:08 +01:00
Vincent Hanquez
d18900c2e0 [internal] random little changes to keep faster toHex from cryptohash as compiled code for later use 2015-05-06 11:39:46 +01:00
Vincent Hanquez
e89031c6d6 make AuthTag be a Bytes instead of ByteString 2015-05-06 11:39:07 +01:00
Vincent Hanquez
b45e8e2c2c [HASH] update template to not put the deprecated foreign header 2015-05-06 07:55:37 +01:00
Vincent Hanquez
4905a91514 [QA] add more exceptions 2015-05-06 07:54:31 +01:00
Vincent Hanquez
81e335cfff [HASH] re-enable SHA512t 2015-05-06 07:53:51 +01:00
Vincent Hanquez
6ba517e945 [DES] remove DES.Serialization module 2015-05-06 07:52:49 +01:00
Vincent Hanquez
d3f9647a54 [QA] add 2 more exceptions 2015-05-04 06:59:39 +01:00
Vincent Hanquez
f18c377cc1 [QA] allow ExistentialQuantification generally 2015-05-04 06:59:27 +01:00
Vincent Hanquez
9f56a6d667 [QA] improve parsing by removing the fixities.
Thanks Roman.
2015-05-04 06:59:07 +01:00
Vincent Hanquez
df3c3523a4 [P256] add a point_add function 2015-05-04 06:56:27 +01:00
Vincent Hanquez
aa790db088 [P256] add more bindings 2015-05-03 20:36:00 +01:00
Vincent Hanquez
ad34f0e1e8 use mod after add/sub 2015-05-03 20:15:26 +01:00
Vincent Hanquez
1f30911e1c [P256] define the n/p/b constants 2015-05-03 20:14:54 +01:00
Vincent Hanquez
c360e77148 [P256] properly define some bindings with X and Y types 2015-05-03 20:14:10 +01:00
Vincent Hanquez
ea875e5c88 [P256] define pointMul 2015-05-03 19:52:00 +01:00
Vincent Hanquez
25c303602d [P256] add comment to `toPoint' 2015-05-03 19:51:21 +01:00
Vincent Hanquez
98463b6dad [P256] export SECP constants using the cryptonite_ prefix 2015-05-03 19:49:42 +01:00
Vincent Hanquez
f09bbf55e3 [Chacha/Salsa] cleanup nonce handling and use bufXor 2015-05-03 14:58:59 +01:00
Vincent Hanquez
cd42b2765b [HMAC] use SecureBytes instead of ByteString for between context 2015-05-03 14:51:13 +01:00
Vincent Hanquez
cc15b91c07 [QA] add more exceptions 2015-05-03 14:48:48 +01:00
Vincent Hanquez
c751fd1a6b [QA] fix import 2015-05-03 14:48:40 +01:00
Vincent Hanquez
dfe3a9af93 [QA] fix module imports 2015-05-03 14:48:26 +01:00