Commit Graph
459 Commits
Author SHA1 Message Date
Frank Denis 42b2d5c8e7 Indent 2014-06-03 23:51:51 -07:00
Frank Denis 4c9a993225 Remove useless #include 2014-05-27 08:53:46 -07:00
Frank Denis eca4b52911 Add extra braces for int128 initializers 2014-05-27 08:53:10 -07:00
Frank Denis 9981651750 aes128ctr: use an union to avoid breaking aliasing rules. 2014-05-26 15:36:16 -07:00
Frank Denis c712feaae3 Avoid redefinition of be32enc() on NetBSD. 2014-05-26 00:12:02 -07:00
Jan Varho 9f52b0f0e9 Change crypto_box_seed_keypair to use SHA-512 of the seed
This makes it compatible with what js-nacl and racl do.
2014-05-25 19:13:04 -07:00
Jan Varho c565993885 Add crypto_box_seed_keypair like crypto_sign_seed_keypair
Uses sk = seed.
2014-05-23 10:25:45 +03:00
Frank Denis 5f847cb76c Do not violate strict aliasing in int128_aes128ctr.c 2014-05-20 19:41:43 -07:00
Frank Denis 7da592b730 Use uint64_t for 64-bit types instead of unsigned long long 2014-05-20 19:35:16 -07:00
Frank Denis a992ac5252 Expose low-level scryptsalsa208sha256() 2014-05-18 23:48:02 -07:00
Frank Denis ddb48d3b1a Install sodium/crypto_stream_chacha20.h 2014-05-15 21:14:36 -07:00
Frank Denis 7381983f8b Preliminary chacha20 support 2014-05-15 13:27:15 -07:00
Frank Denis a15eca1e4d Compatibility macros for crypto_pwhash_scryptsalsa208sha256 2014-05-15 00:53:57 -07:00
Frank Denis ee6412080c Add temporary compat layer for scryptsalsa208sha256 transition 2014-05-15 00:09:15 -07:00
Frank Denis bd05b7d292 Rename scryptxsalsa208sha256 to scryptsalsa208sha256 2014-05-15 00:01:16 -07:00
Frank Denis 184193d1c5 Kill implementation-specific macros 2014-05-13 13:47:13 -07:00
Frank Denis f25d7aa4f1 Add an extra static assertion 2014-05-13 10:41:55 -07:00
Frank Denis 1e0eafc541 Fix inverted sse2/sse3 detection 2014-05-13 00:44:29 -07:00
Frank Denis 3026bd69f9 Disable old compatibility layer 2014-05-13 00:20:07 -07:00
Frank Denis cdd79653f3 Remove unused macros 2014-05-13 00:01:58 -07:00
Frank Denis 291d4998be Define crypto_*_primitive() for high-level functions only 2014-05-13 00:00:03 -07:00
Frank Denis 91d17f6be1 <stddef.h> is required in crypto_hash.h 2014-05-12 23:45:49 -07:00
Frank Denis df427966e2 Move macro definitions close to their related function definition 2014-05-12 23:44:04 -07:00
Frank Denis 84cceed1f6 Do not require crypto_sign_BYTES extra bytes for the message in crypto_sign_open()
This is a common source of confusion.
2014-05-12 22:54:05 -07:00
Frank Denis 37ed9bada9 Name parameters in all prototypes. 2014-05-12 22:04:03 -07:00
Frank Denis 30c1e13f2a Switch opslimit and memlimit in pwhash, to be closer to PHC's proposed API. 2014-05-12 12:34:41 -07:00
Frank Denis 96ea56a471 Rename cpu_features global to _cpu_features 2014-05-12 10:30:52 -07:00
Frank Denis fb99b23ef4 Make aes256 tables static 2014-05-12 10:26:20 -07:00
Frank Denis aefd4667c5 Remove crypto_generichash_blake2b -> crypto_generichash_blake2b_ref macro 2014-05-12 10:18:33 -07:00
Frank Denis 5940f6794c Match crypto_generichash_blake2b_{saltbytes/personalbytes} with prototypes. 2014-05-12 10:15:16 -07:00
Frank Denis a0158e97da Merge remote-tracking branch 'evoskuil/master'
* evoskuil/master:
  Update VS2010/2012 import props to match 2013.
  Update NuGet packaging.
  Modify VS props config for easy variation of output locations and messages.
  Use explicitly Unicode Win32 APIs.
  Update Visual Studio projects and packaging.
2014-05-11 09:18:17 -07:00
evoskuil 4ab3d21529 Use explicitly Unicode Win32 APIs. 2014-05-10 19:28:24 -07:00
Frank Denis 244158ab2e pwhash: return a zeroed output buffer on error paths. 2014-05-10 01:25:07 -07:00
Frank Denis 4ea26f0b8c Stricter autoconf checks for MMX/SSE2/SSE3 2014-05-09 22:01:15 -07:00
Frank Denis be3c786e23 smult_curve25519_donna_c64.c assumes little-endian. 2014-05-09 18:41:39 -07:00
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 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 af2246881d Avoid unknown pragma on !__GCC__ 2014-05-08 21:44:57 -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 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 fda08703fc salsa20/ref: zero sensitive data before returning 2014-05-08 11:12:04 -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