Chris Martin
f77994a729
Various documentation copy editing
2017-11-18 14:27:44 -05:00
Vincent Hanquez
0dc0f30b86
Add HashBlockSize & HashDigestSize & HashInternalContextSize type family for all Hash algorithms
...
supercedes PR #158
2017-07-07 18:28:06 +01:00
Vincent Hanquez
26237c5c6d
remove spurious header modification
2017-02-19 17:17:49 +00:00
Olivier Chéron
d8ed5ce9f1
Add SHAKE128 and SHAKE256 as HashAlgorithm instances
...
Generalizes SHA-3 code for SHAKE support and uses GHC type-level literals
to keep the output length variable.
2017-02-14 23:01:18 +00:00
Vincent Hanquez
634768b2fa
add Data also to Hash algorithms
2017-02-14 12:02:26 +00:00
Vincent Hanquez
7c33fcedb4
add Typeable to hash algorithm
2017-02-14 10:19:44 +00:00
Vincent Hanquez
93fad940e4
Improve context memory usage of Keccak and SHA3
...
saves up to 72 bytes per context for SHA3-512
2016-03-26 10:29:33 +00:00
Vincent Hanquez
ad285be68c
[Hash] tweak internal C API to have the hashlen
2015-11-19 11:37:38 +00:00
Vincent Hanquez
393b159d5f
[hash] add haddock documentation
2015-05-19 11:51:18 +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
6722a02a74
move lowlevel implementation of hashes to byteArrays
2015-04-24 13:30:58 +01:00
Vincent Hanquez
3308ec0d92
cleanup extensions in modules
2015-04-05 07:47:16 +01:00
Vincent Hanquez
bbbbdc4b39
use directly compat module instead of Crypto.Hash.Internal
2015-02-15 00:39:34 +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
36ad1997e3
update module texts
2015-02-08 11:02:42 +00:00
Vincent Hanquez
09feb59f62
merge cryptohash
2014-07-07 14:55:55 +01:00