Olivier Chéron
d0ac50c1af
Additional QA clean-up
2018-04-29 10:43:55 +02:00
Olivier Chéron
b3a1506d82
Remove conditionals related to SHAKE and Blake2
...
Not needed anymore now that GHC > 8.0.
2018-04-28 08:09:25 +02:00
Olivier Chéron
9d961e92e9
Comment about not having Show instance for HMAC
...
Closes #232 .
2018-04-22 19:44:29 +02:00
Olivier Chéron
15f63fd849
Enable powModSecInteger with integer-gmp >= 1.0.2.0
2018-04-20 20:40:53 +02:00
Luke Taylor
d27d464627
Fix cost parsing for bcrypt
...
The tens value was wrong for values of 20+, as reported in #230 .
It should be 10*costTens not 10^costTens. This wasn't detected because
the values are the same when costTens is 1, and using high cost values
is rare with bcrypt because of the performance hit.
Also added a simple hash and validate test since the KAT tests only do
validation. This doesn't cover this bug since the cost value is too
high to include in the test. It allows similar issues to be tested
locally though.
2018-04-17 13:51:04 +01:00
Chris Martin
d2da00445d
fix spelling of "exponent"
2018-04-05 21:44:40 -04:00
Olivier Chéron
3e5be5fdf3
Add Read instance for Digest type
2018-02-11 09:15:05 +01:00
Vincent Hanquez
b4add57955
Hash: use Block instead of UArray to reduce memory usage
2018-02-04 23:06:02 +00:00
Olivier Chéron
325c87febf
Use pattern matching
2018-02-04 14:35:43 +01:00
Olivier Chéron
4926cbb143
Improve types and indentation, fix typo
2018-02-03 19:05:20 +01:00
Baojun Wang
1e57f41e1d
check AESCCM IV length in ccmInit instead of aeadInit
2018-02-03 09:34:57 +01:00
Baojun Wang
f6d9fb0cf1
aeadInit (ccm) returns CryptoError_IvSizeInvalid when iv size is wrong
2018-02-03 09:34:57 +01:00
Baojun Wang
48770bf79f
fix aes ccm decryption cbcmac mis-match
2018-02-03 09:34:57 +01:00
Baojun Wang
1e04890d73
Add ccm decrypt
2018-02-03 09:34:57 +01:00
Baojun Wang
55bf620365
add aes ccm support
2018-02-03 09:31:36 +01: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
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
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
3aaa89d52e
Add missing NFData instances
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
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
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
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
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
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
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
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
57fc438c83
typo in documentation
2017-09-18 10:32:21 +01:00