Commit Graph

280 Commits

Author SHA1 Message Date
Vincent Hanquez
cd0b2bfe64 [internal] fix build by making primitive binding stricter as required by older ghc 2015-05-02 08:10:07 +01:00
Vincent Hanquez
d7a88da726 [Curve25519] fix build and get rid of bytestring by using direct addr# "string" 2015-05-02 07:59:42 +01:00
Vincent Hanquez
35ae906755 update version 2015-05-02 07:08:45 +01:00
Vincent Hanquez
e665c619a7 add pclmuldq flag 2015-05-02 06:46:08 +01:00
Vincent Hanquez
b354cc3d82 [bench] ignore binaries 2015-05-02 05:43:06 +01:00
Vincent Hanquez
71cc250449 [bench] add simple cryptohash vs cryptonite hash on file utility 2015-05-02 05:41:45 +01:00
Vincent Hanquez
09e83a7f68 [hash] fix hash printing 2015-05-02 05:40:47 +01:00
Vincent Hanquez
cc26ce8ce4 fix hexadecimal string generation to be hopefully (much) safer. 2015-05-02 05:40:14 +01:00
Vincent Hanquez
edc75500d3 ignore benchs binary 2015-05-01 09:26:42 +01:00
Vincent Hanquez
cf483be258 [Bench] simplify PBKDF2 parameters passing 2015-05-01 09:26:05 +01:00
Vincent Hanquez
836bc7cd95 add some PBKDF2 benchmarks 2015-05-01 09:23:42 +01:00
Vincent Hanquez
f23d1c4867 add some benchs 2015-05-01 08:13:59 +01:00
Vincent Hanquez
b4adeec6d8 remove digestToHex 2015-05-01 07:40:28 +01:00
Vincent Hanquez
5d3e825f2e remove / comment stuff 2015-05-01 07:36:28 +01:00
Vincent Hanquez
d99c430080 allow -rts flags in test suite 2015-05-01 07:36:05 +01:00
Vincent Hanquez
51fe4bc81d [cryptonite] define the versioning scheme for development 2015-04-30 06:18:24 +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
12ddffe4df [Internal] add a function to convert bytearray and apply a hexadecimal transformation 2015-04-30 06:15:06 +01:00
Vincent Hanquez
a3b444e36f [Internal] Add buffer function to xor with a specific value 2015-04-30 06:13:14 +01:00
Vincent Hanquez
84c05617a3 [internal] add a way to convert bytearray to hexadecimal bytearray 2015-04-30 06:08:21 +01:00
Vincent Hanquez
b497737ef1 [Salsa] use more ByteArray operations instead of bytestring. 2015-04-30 06:07:25 +01:00
Vincent Hanquez
87e2862eaa remove stale file 2015-04-28 11:39:23 +01:00
Vincent Hanquez
1c8d966d71 [Hash] remove unnecessary modules and not used template 2015-04-28 11:37:42 +01:00
Vincent Hanquez
4e12aceee9 remove extra bytestring. 2015-04-24 17:22:25 +01:00
Vincent Hanquez
9dd17fc0c4 use byte array in more places 2015-04-24 17:22:13 +01:00
Vincent Hanquez
6722a02a74 move lowlevel implementation of hashes to byteArrays 2015-04-24 13:30:58 +01:00
Vincent Hanquez
ec4e0c4ed9 remove all the byteArray prefix from byteArray function.
instead expect module import to be qualified for functions.
2015-04-24 06:54:33 +01:00
Vincent Hanquez
e52a75af75 add P256 work in progress binding 2015-04-22 10:15:23 +01:00
Vincent Hanquez
e1e449d121 add google's mincrypt p256 2015-04-22 07:07:04 +01:00
Vincent Hanquez
77166d4f41 [QA] add other good extensions 2015-04-22 06:51:47 +01:00
Vincent Hanquez
0424d67616 [Curve25519] convert to Bytearray 2015-04-22 06:26:06 +01:00
Vincent Hanquez
4a82ef383d [QA] add more warnings 2015-04-22 06:25:45 +01:00
Vincent Hanquez
c06edc9591 add a byteArrayConvert which copy and returns potentially a different output type 2015-04-22 06:25:33 +01:00
Vincent Hanquez
26006dfe25 [cleanup] remove useless import now that bytearray is exporting necessary bits 2015-04-22 06:25:01 +01:00
Vincent Hanquez
7cd2d2b701 [cleanup] replace imports 2015-04-22 06:24:12 +01:00
Vincent Hanquez
61ee498643 remove further deprecated modules and such 2015-04-20 10:56:39 +01:00
Vincent Hanquez
0f7557edf2 [QA] improve reporting 2015-04-20 10:56:28 +01:00
Vincent Hanquez
515f55b344 use CPPHS for processing 2015-04-20 08:40:07 +01:00
Vincent Hanquez
b487aef898 cleanup module imports 2015-04-20 07:36:51 +01:00
Vincent Hanquez
63cd28e3c2 [QA] add trivial CPP by filtering line that starts by #.
doesn't really works without considering line escape
2015-04-20 07:20:25 +01:00
Vincent Hanquez
f86b493e32 remove warnings 2015-04-20 06:02:12 +01:00
Vincent Hanquez
3d46eaea9b add missing headers 2015-04-19 10:22:15 +01:00
Vincent Hanquez
d7c8835068 Merge branch 'ed25519' 2015-04-19 09:25:00 +01:00
Vincent Hanquez
0aaa6a9e9a [Ed25519] Add haskell bindings and tests 2015-04-19 09:24:37 +01:00
Vincent Hanquez
655d8b9c33 [Error] Add new public key error values 2015-04-19 09:24:21 +01:00
Vincent Hanquez
6e79d33e9f [Internal] Improve Bytes
define Show and Eq instances, and add bytesIndex
2015-04-19 09:23:34 +01:00
Vincent Hanquez
fd13a4f0e2 [Internal] add new hexadecimal dumper in the list of internal module 2015-04-19 09:23:09 +01:00
Vincent Hanquez
3713c585fe [Internal] add a utility to dump byte array in hexadecimal 2015-04-19 09:22:41 +01:00
Vincent Hanquez
be42fec6e5 [Internal] properly define ByteArrayCopy functions to only requires ByteArrayAccess from the source 2015-04-19 09:21:48 +01:00
Vincent Hanquez
d595c01c09 [Ed25519] typo in C file 2015-04-19 09:21:19 +01:00