Vincent Hanquez
85575fae41
Merge pull request #204 from ocheron/ecdh-bench
...
FFDH and ECDH benchmarks
2017-12-10 15:54:16 +00:00
Olivier Chéron
4d25832bcf
Benchmark FFDH with 5 standard TLS groups
...
Uses short exponents explained in RFC 7919 to better stand comparison
with ECDH.
2017-11-27 20:43:08 +01:00
Olivier Chéron
ee50734b39
Benchmark ECDH with 5 curves
2017-11-27 20:43:08 +01:00
Olivier Chéron
3aaa89d52e
Add missing NFData instances
2017-11-27 20:43:08 +01:00
Olivier Chéron
2a60551e34
Use criterion 'env' function
2017-11-27 20:43:08 +01:00
Luke Taylor
5e354f9bfc
Use "2b" version prefix in bcrypt hashes
...
Makes docs and code consistent - the code now generates hashes
with the "2b" prefix instead of "2a". Shouldn't make any difference
in practice since previously generated hashes should still validate.
2017-11-27 15:19:23 +00:00
Vincent Hanquez
2293c69f87
Merge pull request #200 from NicolasDP/master
...
add instance of MonadFailure to CryptoFailable
2017-11-25 15:25:21 +00:00
Vincent Hanquez
896382dfbc
Merge pull request #201 from chris-martin/pr/caps
...
Various documentation copy editing
2017-11-19 16:04:40 +00:00
Vincent Hanquez
c26b331c8e
Merge pull request #199 from ocheron/proxy-backend
...
Use Proxy for openBackend
2017-11-19 16:00:41 +00:00
Vincent Hanquez
b3f6786d08
Merge pull request #195 from haskell-crypto/blake2-update-context-size
...
Blake2 update context size
2017-11-19 15:59:20 +00:00
Chris Martin
f77994a729
Various documentation copy editing
2017-11-18 14:27:44 -05:00
Nicolas Di Prima
393d5804b7
add instance of MonadFailure to CryptoFailable
2017-11-16 20:16:29 +00:00
Olivier Chéron
4723dc0b39
Use Proxy in openBackend
...
Replaces 'undefined' and fixes #198 .
2017-10-23 20:39:00 +02:00
Olivier Chéron
4ef50d8092
Bump dependencies to base >= 4.6
...
This is needed for GHC.TypeLits.
2017-10-14 11:32:46 +02:00
Vincent Hanquez
84e96d2fa3
Update context size for Blake2bp and Blake2sp
...
Also fix Blake2bp to not use blake2sp functions
2017-10-02 21:05:30 +01:00
Vincent Hanquez
74f1c1872b
[BLAKE2] update context size on the haskell to the latest code
2017-10-02 20:44:51 +01:00
Vincent Hanquez
ba39c9c18d
Merge pull request #190 from haskell-crypto/travis-update
...
update .travis
2017-09-22 23:29:03 +09:00
Vincent Hanquez
69c194d0fc
cleanup
2017-09-18 14:42:00 +01:00
Vincent Hanquez
36575c7a45
update .travis
2017-09-18 13:16:53 +01:00
Vincent Hanquez
2ecbd5c052
Merge pull request #189 from ocheron/cast5-wordarray
...
CAST5 block cipher
2017-09-18 21:09:49 +09:00
Vincent Hanquez
110ad7b510
Merge pull request #188 from ocheron/hash-tutorial
...
More content for Crypto.Tutorial
2017-09-18 20:54:40 +09:00
Vincent Hanquez
23e9947d15
Merge pull request #187 from ocheron/decaf-update
...
Fix link error with OpenBSD
2017-09-18 20:53:53 +09:00
Vincent Hanquez
57fc438c83
typo in documentation
2017-09-18 10:32:21 +01:00
Vincent Hanquez
c8569d871a
Fix the old blurb about versioning since it confuses some people.
...
Reflect what's already been in place for more than a year now regarding
versioning and API stability
2017-09-18 10:29:09 +01:00
Olivier Chéron
cdc1a1aa17
Fix link error with OpenBSD and strip --strip-unneeded
...
Resolves #186
2017-09-17 18:15:00 +02:00
Olivier Chéron
72c3fa0f6a
Update decaf to upstream commit '807a7e6'
...
* Don't use vector arithmetic in generic arch_32
* fix comments add/subtract
2017-09-17 11:45:26 +02:00
Olivier Chéron
bb2363eea7
Add CAST5 aka CAST-128
...
Haskell translation of RFC 2144.
2017-09-17 11:28:56 +02:00
Olivier Chéron
c6c715f465
Add note about Digest implementing ByteArrayAccess
2017-08-22 20:39:29 +02:00
Olivier Chéron
007f69c557
Add Crypto.Hash examples to tutorial
2017-08-22 20:39:27 +02:00
Olivier Chéron
80ed642f85
Add introduction to tutorial
2017-08-22 20:39:24 +02:00
Vincent Hanquez
06dc3de5c4
Merge pull request #184 from domenkozar/pthread-gold
...
Link against pthread on Linux to support gold linker
2017-08-09 09:29:06 +01:00
Domen Kožar
e7c6dcd107
Link against pthread on Linux
...
Since we're using pthread_join and pthread_create,
to make the gold linker happy on linux we need to explicitly
link against pthread library.
2017-08-02 11:23:01 +02:00
Vincent Hanquez
1992594f82
bump version to 0.24
2017-07-08 08:15:36 +01:00
Vincent Hanquez
2a78dec2ea
add CHANGELOG
2017-07-08 08:07:16 +01:00
Vincent Hanquez
9d43c332de
fix digest size for nat-typed blake2
2017-07-08 07:58:09 +01:00
Vincent Hanquez
ccc3930072
Merge pull request #182 from haskell-crypto/hash-type-nat
...
Add HashBlockSize & HashDigestSize & HashInternalContextSize type family
2017-07-07 21:45:22 +01:00
Vincent Hanquez
d13ce585ab
add further unrolling of Div8 to match Mod8
2017-07-07 21:44:29 +01:00
Vincent Hanquez
b18ec653b8
rename bitLen -> bitlen. GHC 8.2 is stricted about name of type variables
2017-07-07 19:26:59 +01:00
Vincent Hanquez
b8a8e47b29
Merge pull request #181 from haskell-crypto/remove-76
...
remove GHC 7.6 from supported list
2017-07-07 19:24:01 +01:00
Vincent Hanquez
23ba060c73
Merge pull request #180 from haskell-crypto/chacha-drg-expose
...
Expose properly things to create ChaChaDRG
2017-07-07 19:23:46 +01: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
fe2fb33acb
remove 7.6 from supported list
2017-07-07 18:10:00 +01:00
Vincent Hanquez
664a37c16d
[ChaCha] only required byteArrayAccess and add a way to convert from binary
2017-07-07 17:32:09 +01:00
Vincent Hanquez
f559c7bd9d
[ChaCha] only need ByteArrayAccess for initialization
2017-07-07 17:31:30 +01:00
Vincent Hanquez
cb293eb6db
Merge pull request #175 from jrtc27/unaligned-access
...
Fix many cases of unaligned accesses
2017-07-07 16:52:17 +01:00
Vincent Hanquez
35c8174dcc
Merge pull request #179 from ocheron/ec-point-validation
...
Validate result of P256.pointFromBinary and EllipticCurveDH.ecdh
2017-07-07 16:38:51 +01:00
Olivier Chéron
5c4458d626
Test ECC functions ecdh and ecdhRaw
2017-07-05 22:24:22 +02:00
Olivier Chéron
9b56689885
Check that ECDH and ECIES result is not point-at-infinity
...
This guards against invalid public keys when curves have a cofactor.
Fixes #178
2017-07-05 22:24:22 +02:00
Olivier Chéron
aec6af5de4
Add note about P256 encoding of point-at-infinity
2017-07-05 22:24:22 +02:00
Olivier Chéron
adc192ac17
Add constAllZero
2017-07-05 22:24:22 +02:00