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
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
2ecbd5c052
Merge pull request #189 from ocheron/cast5-wordarray
...
CAST5 block cipher
2017-09-18 21:09:49 +09: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
bb2363eea7
Add CAST5 aka CAST-128
...
Haskell translation of RFC 2144.
2017-09-17 11:28:56 +02: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
fe2fb33acb
remove 7.6 from supported list
2017-07-07 18:10:00 +01:00
Olivier Chéron
099f3405cb
Add ECC tests to Other-modules
2017-07-02 18:41:44 +02:00
Olivier Chéron
c80df7ffc3
Merge pull request #173 from remove-blake2-sse-flag
2017-06-22 21:26:48 +02:00
John Galt
1cb7bdfc5f
Remove support_blake2_sse flag in favor of support_sse
2017-06-19 08:57:26 -04:00
Olivier Chéron
8d51bce071
Reorder C sources based on symbol dependencies
...
GHCi dynamic loader processes modules in order and expects to resolve
symbols at each intermediate step.
2017-06-04 19:25:19 +02:00
Olivier Chéron
3c89f0d0b7
Simplify decaf build with Cabal
...
Keeping only one finite field, header 'f_field.h' can be included
from Cabal standard 'include-dirs'.
2017-06-04 19:25:19 +02:00
Olivier Chéron
961dd63eaf
Remove decaf code related to SHAKE
...
Use cryptonite code instead.
2017-06-04 19:25:19 +02:00
Olivier Chéron
6805ddd4f7
Add support for Ed448
...
This replaces the Diffie-Hellman API that was previously exported.
2017-06-04 19:25:19 +02:00
Olivier Chéron
6b4621b14f
Remove previous X448 implementation
...
This ensures it is not necessary anymore.
2017-06-04 19:25:19 +02:00
Olivier Chéron
b3d9156846
Added code from decaf library
...
In sync with upstream commit '0a6e968'.
2017-06-04 19:25:19 +02:00
Vincent Hanquez
f26c02278f
bump version to 0.23
2017-04-25 17:21:14 +01:00
Vincent Hanquez
468d8fe582
require memory at least 0.14.5
2017-04-25 16:06:49 +01:00
Vincent Hanquez
67dd8ed7fc
[Hash] change Digest to use a foundation UArray that have configurable pinnable memory setting
2017-04-25 14:23:13 +01:00
Vincent Hanquez
4f988181c7
Merge pull request #150 from SamProtas/twofish
...
Twofish
2017-04-12 07:47:19 +01:00
Sam Protas
762d818ec0
Twofish 192 and 256 bit key support
2017-04-10 00:33:54 -04:00
Sam Protas
b658c8a99b
Cleanup and performance
2017-04-04 19:29:40 -04:00
Sam Protas
7eedbaa112
Initial implementaiton with passing tests
2017-04-02 18:34:10 -04:00
Olivier Chéron
762f2d9032
Consolidate cryptonite benchmark code
...
Enables `cabal bench' or `stack bench' to run benchmarks
that depend only on cryptonite.
2017-03-29 11:38:32 +02:00
Nicolas DI PRIMA
c0c33c5254
Use Nat for the Blake2's digest sizes
2017-03-13 00:24:17 +00:00
Vincent Hanquez
6440a7ebab
bump version to 0.22
2017-02-24 18:11:31 +00:00
Vincent Hanquez
ef27301a8f
update description
2017-02-24 16:04:24 +00:00
Vincent Hanquez
baa2b6d9c9
extra-doc-files requires cabal 1.18
2017-02-24 16:04:14 +00:00
Vincent Hanquez
75e98e9699
Merge pull request #138 from haskell-crypto/blake2-update
...
Blake2 & Argon2
2017-02-24 15:31:38 +00:00
Vincent Hanquez
253bf0cb8b
Argon2: add working hash function
...
* Cleanup argon c files:
* Remove encoded format and base64 encoder
* Remove verification code
* Remove all variants based simple caller
* Add basic hashing function
* Add a simple KAT test
* Define more things at the haskell level
2017-02-24 13:37:40 +00:00
cielavenir
ad40f40818
Merged Keccak code into SHA3
2017-02-24 21:04:46 +09:00
Vincent Hanquez
a5b6fdc36e
add Argon2 C sources
2017-02-20 11:46:17 +00:00
Vincent Hanquez
343b7593b5
add Constraint for divisibility
2017-02-14 23:01:18 +00:00
Vincent Hanquez
4b5ee83396
revert base back to >= 4.3
2017-02-14 23:01:18 +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
Nicolas DI PRIMA
4189aa9389
Port Fast PBKDF2 for sha1 and sha256
2017-02-11 14:08:23 +00:00
Vincent Hanquez
e76bbaa8a7
Merge pull request #63 from tekul/otp
...
[For Review] HOTP and TOTP implementation
2017-01-29 20:09:29 +00:00
Olivier Chéron
6d4a2bb707
Rename Ed448 to Curve448
...
This makes the API uniform for both D-H functions, avoids
confusion and leaves the name Ed448 available for EdDSA.
2017-01-19 20:26:25 +01:00
Luke Taylor
28ce4ddde6
Remove byteable dependency from test suite
...
This no longer seems to be used and is liable to make
people think that cryponite provides Byteable instances
when in fact its use is deprecated.
2017-01-01 17:20:20 +00:00
Vincent Hanquez
cb0e06a17b
bump version to 0.21
2016-12-17 10:41:20 +00:00
Vincent Hanquez
2a91fe31be
add .cabal support for alignment check
2016-12-09 15:04:14 +00:00
Vincent Hanquez
955f010bff
add internal proxy type to create witnesses
2016-12-02 15:00:05 +00:00
Vincent Hanquez
07b6e80b6d
Rewrite EC primitive and types to have the curve as type
2016-12-01 16:56:28 +00:00
Vincent Hanquez
60bb2cacb4
[ECC] Improve the code base to allow multiples different implementations
...
* Use TypeFamilies; need to see what to do for older GHC versions
* Start implementing some API related to ECIES
2016-11-15 15:05:58 +09:00
Brandon Hamilton
548cbb6f79
Implement the XSalsa20 stream cipher
2016-10-09 15:25:31 +02:00
Vincent Hanquez
3c087f0f44
bump version to 0.20
2016-09-15 21:22:18 +01:00
Vincent Hanquez
571486be00
don't use rdrand on windows
...
fix #99
2016-09-15 20:50:55 +01:00