Olivier Chéron
0ce2e5f325
Remove -fno-warn-unused-imports
...
Changing the build so that we don't diverge again after cleanup done
in #267 .
2019-03-09 09:08:53 +01:00
Olivier Chéron
d67a21f95f
Remove unnecessary imports and calls
2019-03-09 09:08:53 +01:00
Olivier Chéron
107317c84d
Improve strictness in Blowfish rounds
2019-03-04 06:39:55 +01:00
Olivier Chéron
0f8dc3588d
Add BCrypt benchmark
2019-03-04 06:39:46 +01:00
Olivier Chéron
717de392cd
Merge pull request #238 from lpeterse/master
...
Extend the internal interface of the Blowfish module.
2019-03-04 06:37:15 +01:00
Olivier Chéron
8e28d7b2cd
Merge pull request #271 from ocheron/hash-nat-constraints
...
Hash algorithms with runtime output length
2019-03-04 06:33:59 +01:00
Olivier Chéron
26057fa0f6
Merge pull request #270 from ocheron/pr-241-rebased
...
add ECDSA sign/verify digest APIs
2019-03-04 06:32:43 +01:00
Olivier Chéron
299140f884
Remove unnecessary hash arguments
...
We don't need to give the hash algorithm as a separate argument since
it is already available from the digest value itself.
2019-03-01 06:28:55 +01:00
Olivier Chéron
997cea369b
Rename to signDigestWith
2019-03-01 06:28:55 +01:00
Baojun Wang
b55a93dfdc
add ECDSA sign/verify digest APIs
...
(rebased from commit 045793427e8d46594b0b2afedb314d027ec707ab)
2019-03-01 06:28:32 +01:00
Olivier Chéron
3c41966b9a
Add module Crypto.Number.Nat
...
This new module exposes type constraints required by some hash
algorithms and provides functions to check whether the constraints are
satisfied with runtime values.
Resolves #256 .
2019-02-28 07:07:48 +01:00
Olivier Chéron
eccbc11824
Remove Crypto.Internal.Proxy
...
Data.Proxy can be used instead now that GHC >= 8.0. In Data.Proxy the
Proxy type is poly-kinded.
2019-02-28 07:07:48 +01:00
Olivier Chéron
8c77f0c1ea
Update generation templates per latest changes
2019-02-25 06:42:44 +01:00
Olivier Chéron
65932e5a7e
Add missing Data instances in Crypto.Hash.Blake2
2019-02-25 06:40:53 +01:00
Olivier Chéron
540ef78abb
Merge pull request #267 from crockeea/master-clean
...
Code maintenance and cleanup
2019-02-25 06:36:11 +01:00
Crockett
133c6e1b2d
Added some redundant constraints for documentation/consistency. Added an INLINABLE pragma to i2ospOf to hopefully increase specializations.
2019-02-24 17:04:10 -08:00
Olivier Chéron
101c2c05cf
Merge pull request #268 from psibi/blake2-update
...
Update blake2 with upstream
2019-02-24 17:47:22 +01:00
Sibi Prabakaran
dee3782a83
Add Changelog
2019-02-22 03:28:57 +05:30
Sibi Prabakaran
af9f9548d6
Update reference blake2 implementation with upstream
2019-02-21 17:16:00 +05:30
Olivier Chéron
1d82f647a4
Merge pull request #265 from crockeea/master
...
Fixed hash truncation bug in DSA
2019-02-04 21:22:04 +01:00
Crockett
0fb8a73d3b
Fixed compiler warnings
2019-02-03 16:06:05 -08:00
Crockett
88596509f0
Changed imports to match style of rest of library
2019-02-03 13:51:01 -08:00
Crockett
109600cec2
Added missing imports and removed duplicate imports. Tests pass.
2019-02-03 13:43:54 -08:00
Crockett
c71a6733dd
Unified DSA and ECDSA truncate&hash function.
2019-02-03 13:30:56 -08:00
Crockett
d5003a46a6
Fixed hash truncation bug in DSA; added more KATs from RFC 6979.
2019-01-26 15:15:34 -08:00
Olivier Chéron
69ef95b0de
Use GHC 8.6.3 for CI and bump versions
2019-01-19 08:54:31 +01:00
Olivier Chéron
f81c08c089
Merge pull request #262 from ocheron/rsapss-any-length
...
RSA-PSS with arbitrary key size
2019-01-19 08:49:38 +01:00
Olivier Chéron
1d5947f055
Use any instead of not all
2019-01-15 21:24:31 +01:00
Olivier Chéron
ae0e9c0f3e
Remove commented example 10
2019-01-12 17:43:49 +01:00
Olivier Chéron
8eb8d01577
RSASSA-PSS vectors with key size 1025, 1026, 1031
2019-01-12 17:43:49 +01:00
Olivier Chéron
f9ae52327c
RSASSA-PSS with key of arbitrary length
...
Instead of public_size / private_size which are in bytes only, this
uses function numBits to recover the effective length of the modulus
in bits. The patch also handles removal of unneeded initial byte when
the length is 1 modulo 8.
2019-01-12 17:43:49 +01:00
Olivier Chéron
274911c608
Accept hlint suggestions
2019-01-12 17:43:49 +01:00
Olivier Chéron
d964064d80
Use heterogeneous equality
2019-01-12 17:43:49 +01:00
Vincent Hanquez
3de65a43a1
fix QA building command
2019-01-06 16:08:48 +00:00
Vincent Hanquez
7fc7acb38b
Merge pull request #247 from crodriguezvega/master
...
Add Rabin (and variants) cryptosystem
2018-12-18 21:44:44 +00:00
Carlos Rodriguez
ddfdbbd4be
Removed unnecessary reference to random.
2018-12-18 20:19:14 +01:00
Carlos Rodriguez
cc18bf41ee
Corrected value boundaries in description of function.
2018-11-11 17:14:23 +01:00
Carlos Rodriguez
95f0f3d0c9
Fixed typos in name.
2018-11-03 21:17:46 +01:00
Carlos Rodriguez
3165027840
Fixed typo in name.
2018-11-03 21:12:53 +01:00
Carlos Rodriguez
314a9caba7
Merge branch 'master' of https://github.com/haskell-crypto/cryptonite
...
# Conflicts:
# cryptonite.cabal
# tests/KAT_PubKey.hs
2018-11-03 20:23:25 +01:00
Olivier Chéron
9847554392
Fixed comment about expSafe
2018-11-01 09:08:39 +01:00
Olivier Chéron
8da892da5d
Merge pull request #258 from ocheron/pkcs1_5-padding
...
Correction to PKCS#1 v1.5 padding
2018-11-01 09:06:57 +01:00
Olivier Chéron
01faa66fd4
Add tests for RSA signature and verification
...
This includes tests for SignatureTooLong edge cases.
2018-10-29 20:43:07 +01:00
Olivier Chéron
f4e094aacb
Fix PKCS#1 v1.5 padding
...
The padding string is at least 8 bytes long + 3 other bytes,
so it should be 11.
2018-10-29 20:43:02 +01:00
Olivier Chéron
0f43451b4f
Merge pull request #257 from ocheron/hash-shake-truncate
...
SHAKE with output length not divisible by 8
2018-10-29 19:09:40 +01:00
Olivier Chéron
d4bd9287f2
Test with GHC 8.4.4
2018-10-28 17:52:36 +01:00
Olivier Chéron
ee9c485a4d
Update tested-with
2018-10-26 18:31:29 +02:00
Olivier Chéron
77bc512a87
Add a default stack.yaml
...
Will be useful for the weeder build in CI.
2018-10-24 21:25:41 +02:00
Olivier Chéron
6a7594d2be
Add GHC 8.6 to CI and bump LTS versions
2018-10-24 06:28:39 +02:00
Olivier Chéron
455504b8e2
Implement SHAKE output not divisible by 8 bits
2018-10-23 06:59:07 +02:00