Commit Graph

909 Commits

Author SHA1 Message Date
Frank Denis
8631fe9d1a Avoid unaligned access in smult_curve25519_donna_c64.c if required 2014-05-09 18:39:14 -07:00
Frank Denis
23aac61bd0 Fix indentation 2014-05-09 18:27:24 -07:00
Frank Denis
5ee582509e Do not check for __STDC_VERSION__ any more to use memset_s() 2014-05-09 13:24:36 -07:00
Frank Denis
90d270f7c5 Check for memset_s availability the hard way. 2014-05-09 13:23:15 -07:00
Frank Denis
bfeec26358 Use explicit_bzero if available 2014-05-09 13:06:39 -07:00
Frank Denis
290632a193 Use memset_s() only if compiling in C11 mode. 2014-05-09 11:11:48 -07:00
Frank Denis
cf8961a5bb thanks << '@evoskuil' 2014-05-09 00:14:55 -07:00
Frank Denis
8802ea6326 Update ChangeLog 2014-05-08 22:36:28 -07:00
Frank Denis
af2246881d Avoid unknown pragma on !__GCC__ 2014-05-08 21:44:57 -07:00
Frank Denis
ffe144ac04 Update vs201*/libsodium/libsodium.vcxproj 2014-05-08 21:38:16 -07:00
Frank Denis
9383d59e21 It's totally fine for sodium_library_version_minor() to be 0. 2014-05-08 21:32:36 -07:00
Frank Denis
b2cc7ff0b9 Regen version.h for the new Visual Studio build system. 2014-05-08 21:14:39 -07:00
Frank Denis
d12b563520 Bump library version major 2014-05-08 21:13:12 -07:00
Frank Denis
f945a718da Update libsodium.vcxproj.filters 2014-05-08 21:03:06 -07:00
Frank Denis
6bef914dc4 Update libsodium.vcxproj 2014-05-08 20:48:19 -07:00
Frank Denis
42d87bf926 The pwhash test requires a 32 bytes salt. 2014-05-08 20:39:14 -07:00
Frank Denis
b2c5deccdd Pretend Visual Studio has <emmintrin.h> 2014-05-08 20:26:45 -07:00
Frank Denis
4ebbd0d992 Just use escrypt_kdf_nosse if SSE2 is not available. 2014-05-08 20:18:32 -07:00
Frank Denis
2dc7038b58 Try to keep file names unique, it makes things easier with Visual Studio 2014-05-08 20:07:03 -07:00
Frank Denis
7e6bd17b77 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Update README.markdown
2014-05-08 19:09:57 -07:00
Frank Denis
e48b1e6b75 Remove extra puts() in pwhash test. 2014-05-08 19:09:43 -07:00
Frank Denis
67d83a3bf5 Merge pull request #150 from whitequark/patch-1
Update README.markdown
2014-05-08 18:53:55 -07:00
Peter Zotov
efe7591cdf Update README.markdown
The language is named OCaml, not Ocaml.
2014-05-09 05:32:51 +04:00
Frank Denis
28d36d5207 Add memory locking to crypto_box_easy 2014-05-08 15:11:54 -07:00
Frank Denis
8a8463e4ac Plug memory leak on error path in the easy interfaces 2014-05-08 15:06:28 -07:00
Frank Denis
2a531bb519 Recommend sodium_mlock()/sodium_munlock() over sodium_memzero(). 2014-05-08 14:30:15 -07:00
Frank Denis
be4917144b Document sodium_mlock()/sodium_munlock() 2014-05-08 14:19:46 -07:00
Frank Denis
609f2c6b9f crypt_pwhash should be a 3rd-level title 2014-05-08 12:34:28 -07:00
Frank Denis
d183c89490 Add preliminary documentation on scrypt 2014-05-08 12:32:49 -07:00
Frank Denis
fda08703fc salsa20/ref: zero sensitive data before returning 2014-05-08 11:12:04 -07:00
Frank Denis
4722990ec3 Merge pull request #149 from jvarho/divide-by-zero-fix
Check r and p against zero before dividing
2014-05-08 08:07:50 -07:00
Jan Varho
3785fc5cd5 Check r and p against zero before dividing 2014-05-08 12:48:56 +03:00
Frank Denis
dabd8fe426 <stdint.h> is not needed in crypto_pwhash_scryptxsalsa208sha256.h 2014-05-08 00:07:52 -07:00
Frank Denis
9b3219428e Reformat prototype, for consistency. 2014-05-08 00:06:06 -07:00
Frank Denis
299ff0ceb3 Add a minimal test for crypto_pwhash 2014-05-07 23:54:55 -07:00
Frank Denis
ee20da2cd7 Make it clear that crypto_sign_SECRETKEYBYTES actually stands for 2 * 32 2014-05-07 23:23:39 -07:00
Frank Denis
9d29f94ac2 Add overdue crypto_sign test 2014-05-07 23:23:13 -07:00
Frank Denis
dcf8869229 Sync salsa20/ref with supercop-20140425
But these changes may be reverted unless there is a solid reason for
adding these copies to the stack.
2014-05-07 21:39:43 -07:00
Frank Denis
c81c5c1010 Sync stream_salsa20_amd64_xmm6.S with SUPERCOP 2014-04-25 2014-05-07 21:16:19 -07:00
Frank Denis
353f296429 Bring changes from SUPERCOP 2014-04-25 to ed25519/ref10 2014-05-07 21:01:31 -07:00
Frank Denis
e7488dec44 Add crypto_pwhash_scryptxsalsa208sha256_str_verify() 2014-05-07 19:35:05 -07:00
Frank Denis
fa05d907bf All the crypto_pwhash_* macros do not need to be exposed. 2014-05-07 15:30:04 -07:00
Frank Denis
4ef1a332d1 Add crypto_pwhash_scryptxsalsa208sha256_str() 2014-05-07 15:14:12 -07:00
Frank Denis
a234e505f9 Saving %rbx may actually be required depending on the memory model. 2014-05-07 09:13:34 -07:00
Frank Denis
95d9a625db pwhash_scrypt(): do not allow outlen to be > SIZE_MAX 2014-05-07 00:27:18 -07:00
Frank Denis
2702aa1a24 Remove crypto_pwhash_scryptxsalsa208sha256_BYTES, support any output length.
A _BYTES macro will be more useful for the crypt()-like interface.
2014-05-07 00:24:58 -07:00
Frank Denis
d1a1afb6e9 zeroing the on-stack output in escrypt_r() doesn't hurt. 2014-05-07 00:12:10 -07:00
Frank Denis
688e724dfb Reindent 2014-05-07 00:08:47 -07:00
Frank Denis
19da370866 Reindent crypto_scrypt-common.c 2014-05-07 00:01:20 -07:00
Frank Denis
7775a34c97 Add crypto_pwhash_scryptxsalsa208sha256() + output/salt len macros/functions. 2014-05-06 23:50:46 -07:00