Vincent Hanquez
5400fdf5ae
use haskell-ci
2018-02-04 14:43:40 +00:00
Vincent Hanquez
28f604f7bd
Merge pull request #210 from avieth/avieth/bs_copy
...
More efficient digestFromByteString
2018-01-09 22:18:54 +00:00
Alexander Vieth
6dca020660
improve digestFromByteString efficiency
2018-01-09 17:10:12 -05:00
Vincent Hanquez
c02c43bfc7
Merge pull request #205 from osa1/close_dev_handle
...
withDev: Close the FD on exception
2017-12-17 18:15:31 +00:00
Vincent Hanquez
6346b8289c
Merge pull request #202 from ocheron/ed25519-arith-negate
...
Ed25519 arithmetic primitives
2017-12-17 18:12:50 +00:00
Vincent Hanquez
82c22d50c7
Merge pull request #206 from haskell-crypto/replace-foundation-by-basement
...
remove dependency on foundation and moving to basement
2017-12-17 18:12:41 +00:00
Olivier Chéron
3217038a1a
Add pointMulByCofactor and pointHasPrimeOrder
2017-12-17 11:56:33 +01:00
Olivier Chéron
9cd77ed3e2
Test points with a torsion component
2017-12-17 09:46:42 +01:00
Olivier Chéron
251f164f47
Apply bugfix to Edwards25519.pointsMulVarTime
2017-12-17 09:46:42 +01:00
Olivier Chéron
b962952c30
Add introduction and warnings about possible pitfalls
2017-12-17 09:46:42 +01:00
Olivier Chéron
0820cd5c38
Simpler Edwards25519.scalarGenerate
2017-12-16 11:33:38 +01:00
Olivier Chéron
fbe1c213e2
Use throwCryptoError
2017-12-11 06:40:41 +01:00
Olivier Chéron
45723e3542
Rename to Edwards25519
2017-12-10 21:14:47 +01:00
Olivier Chéron
d472d9b74f
Import Ed25519 unqualified
2017-12-10 21:13:09 +01:00
Vincent Hanquez
85575fae41
Merge pull request #204 from ocheron/ecdh-bench
...
FFDH and ECDH benchmarks
2017-12-10 15:54:16 +00:00
Vincent Hanquez
a61db59a22
bump version again
2017-12-06 11:44:44 +00:00
Vincent Hanquez
76e92e6d29
force latest memory
2017-12-01 09:14:07 +00:00
Vincent Hanquez
f861a52b1b
remove dependency on foundation and moving to basement
2017-11-30 12:08:08 +00:00
Ömer Sinan Ağacan
d7aeb5f545
withDev: Close the FD on exception
2017-11-30 10:30:29 +03: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
Olivier Chéron
8567bacc2e
Add pointNegate to class EllipticCurveArith
2017-11-20 19:28:17 +01:00
Olivier Chéron
8d7e0d236c
Add P256.pointNegate
2017-11-20 19:28:17 +01:00
Olivier Chéron
e8f1bc08c8
Decrease iterations of ECC tests
2017-11-20 19:28:17 +01:00
Olivier Chéron
b8b59be5a5
Normalize result of ECC.pointNegate
2017-11-20 19:28:17 +01:00
Olivier Chéron
4f7d742461
Export and test ECC.pointNegate
2017-11-20 19:28:16 +01:00
Olivier Chéron
c55dd4d27f
Add Curve_Ed25519
2017-11-20 19:28:16 +01:00
Olivier Chéron
6b3bf37eea
Use only fixed-window implementation
2017-11-20 19:28:16 +01:00
Olivier Chéron
d497040ddd
Avoid direct indexed access in precomputed table
2017-11-20 19:28:16 +01:00
Olivier Chéron
123e22ec08
Ed25519 scalar multiplication with 4-bit fixed window
2017-11-20 19:28:16 +01:00
Olivier Chéron
5778909761
Add Ed25519.pointsMulVarTime
2017-11-20 19:28:16 +01:00
Olivier Chéron
416fc649e1
Test Ed25519 arithmetic primitives
2017-11-20 19:28:16 +01:00
Olivier Chéron
35f1d20b79
Ed25519 scalar add & multiply
2017-11-20 19:28:15 +01:00
Olivier Chéron
7d61abff03
Ed25519 point negation
2017-11-20 19:28:15 +01:00
Olivier Chéron
9ea718f55e
Arithmetic primitives over curve Ed25519
2017-11-20 19:28:15 +01:00
Olivier Chéron
fcf1ff55fb
Reorder C sources
...
ed25519 uses sha512 code and must come later when using GHCi
dynamic linker on macOS.
2017-11-19 20:52:32 +01: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