Commit Graph

501 Commits

Author SHA1 Message Date
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
Vincent Hanquez
b859083d19 [ed25519] add missing 32 bits files 2015-06-19 11:14:06 +01:00
Vincent Hanquez
e79814cd1d revert merging of version upgrade 2015-06-19 11:07:27 +01:00
Vincent Hanquez
b111932559 update CHANGELOG 2015-06-19 11:06:48 +01:00
Vincent Hanquez
25526e24a1 Merge branch 'hashdescr' 2015-06-19 11:06:11 +01:00
Vincent Hanquez
0b6b2d661c [Random] allow drgNew to be run in any MonadRandom directly.
this allow cascading, create a DRG from another DRG
2015-06-19 11:05:54 +01:00
Vincent Hanquez
0d2290a4a1 [RSA] allow data to be passed as is, instead of hashed 2015-06-19 11:04:37 +01:00
Vincent Hanquez
39cf449ba7 add some missing instance of HashAlgorithmASN1 2015-06-19 11:04:17 +01:00
Vincent Hanquez
8bc92dcd8c [README] remove space 2015-06-15 21:51:07 +01:00
Vincent Hanquez
0dedd22a4c Merge pull request #14 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2015-06-15 20:29:31 +01:00
The Gitter Badger
698e56ee5d Added Gitter badge 2015-06-15 08:12:39 +00:00