Vincent Hanquez
b00a1a2553
[tests] expands tabs, and remove redundant binding
2015-08-30 07:49:30 +01:00
Vincent Hanquez
3230f849a0
bump version to 0.7
2015-08-28 17:11:08 +01:00
Vincent Hanquez
71fe77da68
[endianess] fix some issues on non supported arches
2015-08-28 17:10:27 +01:00
Vincent Hanquez
36d5fde149
Merge pull request #32 from nomeata/master
...
Endianess fixes
2015-08-27 16:02:16 +01:00
Vincent Hanquez
5f72788041
[tests] fix last number test problem
2015-08-27 15:42:08 +01:00
Vincent Hanquez
3af592e997
[tests] make sure we don't use 0 for number parameters
2015-08-27 15:03:07 +01:00
Joachim Breitner
507a8f8cea
Use mkLE, not LE
...
to make sure the conversion to little endian is actually happening. This
fixes a test failure in ChaChaPoly1305. Fixes #31 .
2015-08-27 14:52:37 +02:00
Edmund Grimley Evans
4beda3a49d
Avoid endianess problems in integerify()
...
This fixes a build failure in KDF/Scrypt. Fixes #30 .
2015-08-27 14:52:03 +02:00
Vincent Hanquez
676c8e6be1
adjust bounds on memory for BCrypt and add item to CHANGELOG
2015-08-27 10:59:51 +01:00
Vincent Hanquez
ea8cb2d45a
[blowfish] remove unnecessary list of word32 for the schedule
...
Just use the binary's array directly
2015-08-27 10:57:28 +01:00
Luke Taylor
f346c46243
Add BCrypt module doc and a validatePasswordEither fn
2015-08-26 10:33:36 +01:00
Luke Taylor
a888501bb8
Add bcrypt tests
...
Mostly copied from openwall source, leaving out the unsupported 2x
tests and special bug-related tests for passwords containing 0xFF bytes.
2015-08-26 10:33:36 +01:00
Luke Taylor
39d5eb13fe
Add bcrypt password hashing and validation API
2015-08-26 10:33:36 +01:00
Luke Taylor
2566e46185
Implement the eksBlowfish function
...
This modifies the standard blowfish key schedule function to accept an
optional salt and cost as used in bcrypt and modifies the algorithm
accordingly to implement the "expensive" version.
The standard blowfish version is just the same but with a salt value of
zero and a single call to the expandKey function. See the original
bcrypt paper for more details.
2015-08-26 10:33:35 +01:00
Luke Taylor
08ebde2f09
Modify creation of Blowfish key schedule
...
Changes to create it from an array of Word32, instead of using
mutableArray32FromAddrBE, which seems to reverse the words.
2015-08-26 10:33:35 +01:00
Vincent Hanquez
ad62f1607f
add item to CHANGELOg
2015-08-18 12:03:42 +01:00
Vincent Hanquez
cd8f70e062
[Padding] add PKCS5/PKCS7 padding/unpadding methods
2015-08-18 12:03:05 +01:00
Vincent Hanquez
41c5af125c
add CHANGELOG
2015-08-16 16:33:34 +01:00
Vincent Hanquez
542ee74f8c
[bench] add some number for chacha poly1305
2015-07-30 14:40:54 +01:00
Vincent Hanquez
4653f36d19
[Poly1305] add NFData for Tag.
2015-07-30 14:40:35 +01:00
Vincent Hanquez
ead424f793
[Scrypt] reduce line size of comment
2015-07-29 10:03:43 +01:00
Vincent Hanquez
0de643dbce
[QA] update to latest state of things
2015-07-29 10:02:44 +01:00
Vincent Hanquez
8a0bacfc6d
[Poly1305] make initialize explicitely failable
2015-07-29 09:49:49 +01:00
Vincent Hanquez
4af8185d65
add new MAC key error
2015-07-29 09:45:51 +01:00
Vincent Hanquez
e064af5cba
[chachapoly1305] properly handle the decryption, and change combine to encrypt.
2015-07-29 07:24:46 +01:00
Vincent Hanquez
169570c963
fix 0 case.
2015-07-29 07:13:04 +01:00
Vincent Hanquez
1c0f5e7abf
bump version to 0.6
2015-07-25 08:52:34 +01:00
Vincent Hanquez
d9f7a7deda
append to CHANGELOG
2015-07-25 08:52:00 +01:00
Vincent Hanquez
ce849fb0d2
[ChaChaPoly1305] add implementation and simple KAT test
2015-07-19 17:53:56 +01:00
Vincent Hanquez
58c6efe4c4
[tests] introduce a new checker for hunit based on the property checker
2015-07-19 17:53:07 +01:00
Vincent Hanquez
6e5ad0c640
[tests] reduce the size of the number generated as this basically block the test suite now
2015-07-19 17:52:35 +01:00
Vincent Hanquez
5dab0190ac
[Poly1305] Rename Ctx to State
2015-07-19 17:51:46 +01:00
Vincent Hanquez
ce043f49a1
[AES] fix wrongly indented comment
2015-07-19 17:51:00 +01:00
Vincent Hanquez
0f1db30aa8
add BSD to support list
2015-07-08 13:46:42 +02:00
Vincent Hanquez
b43fb64dd8
update CHANGELOG
2015-07-03 13:44:23 +02:00
Vincent Hanquez
8f01f2ea64
Merge pull request #20 from rblaze/devrandom
...
Use non-blocking IO with /dev/random.
2015-07-03 13:07:13 +02:00
Vincent Hanquez
688fd5118c
add some known issue on OSX 10.7 as part of the README
2015-07-03 11:39:43 +02:00
Andrey Sverdlichenko
4581a737d7
Use non-blocking IO with /dev/random.
...
Do not wait for data to appear from /dev/random, otherwise server is blocked
for a few seconds if there is no entropy left.
2015-06-29 07:32:42 +00:00
Vincent Hanquez
75b362a2a0
add Random benchmarks
2015-06-22 14:11:48 +01:00
Vincent Hanquez
db3e180a41
[Random] add a flag to be able to disable rdrand
2015-06-22 14:05:29 +01:00
Vincent Hanquez
56839fcd82
bump version to 0.5
2015-06-21 15:19:42 +01:00
Vincent Hanquez
5cf989e7b6
[tidy-exports] update CHANGELOG
2015-06-21 15:18:40 +01:00
Vincent Hanquez
69d8dd1a08
[tidy-exports] properly prefix aesni stuff
2015-06-21 15:16:05 +01:00
Vincent Hanquez
e6d3518c2e
[tidy-exports] properly prefix gf_mul(x)
2015-06-21 15:11:02 +01:00
Vincent Hanquez
03074526d6
[tidy-exports] properly prefix initialize_hw with cryptonite_aesni_
2015-06-21 15:06:27 +01:00
Vincent Hanquez
5812bce10f
[tidy-exports] mark gmtab as static
2015-06-21 15:05:46 +01:00
Vincent Hanquez
9877f77bdf
bump version to 0.4
2015-06-20 16:22:44 +01:00
Vincent Hanquez
532c31a459
update CHANGELOG
2015-06-20 15:52:43 +01:00
Vincent Hanquez
b37ee01636
[random] add a System "DRG"
2015-06-20 15:51:42 +01:00
Vincent Hanquez
0ff53203d0
bump version to 0.3
2015-06-19 11:15:11 +01:00