Commit Graph

11 Commits

Author SHA1 Message Date
Vincent Hanquez
b45e8e2c2c [HASH] update template to not put the deprecated foreign header 2015-05-06 07:55:37 +01:00
Vincent Hanquez
81e335cfff [HASH] re-enable SHA512t 2015-05-06 07:53:51 +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
1c8d966d71 [Hash] remove unnecessary modules and not used template 2015-04-28 11:37:42 +01:00
Vincent Hanquez
6722a02a74 move lowlevel implementation of hashes to byteArrays 2015-04-24 13:30:58 +01:00
Vincent Hanquez
684e0ea42a cleanup extensions needed in hash templates 2015-04-05 07:46:51 +01:00
Vincent Hanquez
d9183b7d9b missing template from previous commit 2015-03-08 15:18:45 +08: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
bbbbdc4b39 use directly compat module instead of Crypto.Hash.Internal 2015-02-15 00:39:34 +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
4652fd99a7 add template for hash generation and the little program associated with it 2015-02-08 12:04:05 +00:00