Commit Graph

452 Commits

Author SHA1 Message Date
Vincent Hanquez
0b6b2d661c [Random] allow drgNew to be run in any MonadRandom directly.
this allow cascading, create a DRG from another DRG
2015-06-19 11:05:54 +01:00
Vincent Hanquez
0d2290a4a1 [RSA] allow data to be passed as is, instead of hashed 2015-06-19 11:04:37 +01:00
Vincent Hanquez
39cf449ba7 add some missing instance of HashAlgorithmASN1 2015-06-19 11:04:17 +01:00
Vincent Hanquez
9a0ab88b3d update CHANGELOG 2015-06-10 12:29:18 +01:00
Vincent Hanquez
a9df2a2180 [RSA] remove hashdescr in favor of just specifying the algorithm directly
The extra information is embedded in the HashAlgorithmASN1 class
that allow a digest to ASN1 structured.
2015-06-10 12:27:37 +01:00
Vincent Hanquez
9cc4ffdd04 update CHANGELOG 2015-06-09 15:44:12 +01:00
Vincent Hanquez
0900f3b1b0 Merge pull request #9 from tekul/aescleanup
Remove unused AES primitives functions and exports
2015-06-09 15:17:51 +01:00
Vincent Hanquez
79f6cb77d8 update CHANGELOG 2015-06-09 14:40:46 +01:00
Vincent Hanquez
fb4006b41a Merge branch 'master' of https://github.com/vincenthz/cryptonite 2015-06-09 14:39:33 +01:00
Vincent Hanquez
040efcb42b update CHANGELOG 2015-06-09 14:39:20 +01:00
Vincent Hanquez
35bad8c241 [hash] properly display Digest just like cryptohash.
fix #8
2015-06-09 14:35:23 +01:00
Luke Taylor
875b80107c Remove unused AES primitives functions and exports
The code for initializing different AEAD modes is now encapsulated in
the BlockCipher type and the individual mode encryption and decryption
functions have been replaced by generalized versions, so are no longer
used.
2015-06-09 11:45:39 +02:00
Vincent Hanquez
c3834e79cd Merge pull request #7 from tekul/commentfixes
Minor haddock fixes
2015-06-09 06:39:09 +01:00
Luke Taylor
4e1437d4fd Minor haddock fixes
Fix some incorrect parameter descriptions and spelling/typos.
2015-06-07 13:26:26 +02:00
Vincent Hanquez
8cc91a7bfe Merge pull request #5 from vincenthz/travis-update
Travis update to use container based infrastructure
2015-06-04 06:34:17 +01:00
Vincent Hanquez
d8b72f5f86 remove multilines 2015-06-03 11:24:00 +01:00
Vincent Hanquez
c02012552c [travis] fixing some missing compilers/cabal versions 2015-06-02 17:11:17 +01:00
Vincent Hanquez
549fb0fb92 [travis] try to use containers base infrastructure 2015-06-02 14:56:42 +01:00
Vincent Hanquez
bdb9606bfb update CHANGELOG 2015-06-02 14:29:33 +01:00
Vincent Hanquez
7301c719bf [P256] use ScrubbedBytes for Scalar 2015-06-02 14:22:48 +01:00
Vincent Hanquez
be75de64e1 [aes] fast track length == 0 with ECB encryption/decryption 2015-06-02 14:22:26 +01:00
Vincent Hanquez
c7068873c5 bump version to 0.2 2015-06-01 14:35:55 +01:00
Vincent Hanquez
6cf72ac2de [random] add missing header 2015-06-01 14:02:47 +01:00
Vincent Hanquez
f37618d00f [random] add sysrand base. WIP 2015-06-01 13:37:32 +01:00
Vincent Hanquez
8e5a23e86f update README 2015-06-01 13:25:35 +01:00
Vincent Hanquez
59bc2a9528 [tests] remove unnecessary binding in P256 2015-06-01 13:03:38 +01:00
Vincent Hanquez
6c8ab6b610 [tests] remove unnecessary modules 2015-06-01 13:03:29 +01:00
Vincent Hanquez
daff858fe1 [number] cleanup in serialization 2015-06-01 13:03:21 +01:00
Vincent Hanquez
453e9a6f35 [number] internal serialize, unconditionally zero the buffer. 2015-06-01 13:02:53 +01:00
Vincent Hanquez
6028e95805 [number] cleanup 2015-06-01 11:50:24 +01:00
Vincent Hanquez
69723be05c [tests] add the reverse of the previous number kat test 2015-06-01 10:46:59 +01:00
Vincent Hanquez
360f4f51dc [tests] add some vectors for i2ospOf_ 2015-06-01 10:41:42 +01:00
Vincent Hanquez
bafde1f23d update CHANGELOG 2015-06-01 07:52:55 +01:00
Vincent Hanquez
f63a3c6025 [p256] fix all the bugs found by the now useful P256 test suite 2015-06-01 07:48:31 +01:00
Vincent Hanquez
2c112b8877 [tests] generate smaller number in one of the case 2015-06-01 07:47:40 +01:00
Vincent Hanquez
d873564c54 [number] split the serialization to support a more bit banging direct approach 2015-06-01 05:59:54 +01:00
Vincent Hanquez
e9c812e4fd [error] make CryptoFailable an instance of Show and Eq if possible 2015-06-01 05:59:25 +01:00
Vincent Hanquez
1d383a3d12 [ECC] add a simple property test for point addition 2015-06-01 05:59:08 +01:00
Vincent Hanquez
1634c6bbb5 [tests] add missing extension related to previous commit 2015-06-01 05:58:43 +01:00
Vincent Hanquez
df5ed2a4e9 [tests] add a more elaborate report testing for property checks 2015-06-01 05:58:32 +01:00
Vincent Hanquez
f79081670c [tests] add better range integer generation. by default the number generated are fairly small. 2015-06-01 05:58:15 +01:00
Vincent Hanquez
3eda859c8d [test] add marshalling tests for numbers 2015-06-01 05:57:09 +01:00
Vincent Hanquez
4edb580cda [P256] add warning for non constant time operation 2015-05-30 10:38:59 +01:00
Vincent Hanquez
e2c1b82234 [tests] add first P256 test 2015-05-30 10:38:39 +01:00
Vincent Hanquez
b9e6bff690 fix a bug in serialization 2015-05-30 10:37:24 +01:00
Vincent Hanquez
78fa0c3650 [P256] implement missing function, and remove un-implementable one.
remove temporary removal, and properly fixes #1
2015-05-29 15:47:25 +01:00
Vincent Hanquez
ac67e0d8fb Merge branch 'master' of https://github.com/vincenthz/cryptonite 2015-05-26 22:09:49 +01:00
Vincent Hanquez
e413290d8f [p256] temporary remove missing functions. fix #1 2015-05-26 22:09:12 +01:00
Vincent Hanquez
ecab33beef Merge pull request #3 from NicolasDP/master
add Ord instance on Digest
2015-05-26 21:54:45 +01:00
Nicolas DI PRIMA
57c814f20b add Ord instance on Digest 2015-05-26 19:10:26 +01:00