Commit Graph

3906 Commits

Author SHA1 Message Date
Frank Denis
8f859dc187 Indent .travis.yml with prettier 2019-06-10 22:36:13 +02:00
Frank Denis
53e20300e9 argon2_pick_best_implementation() can be static 2019-06-10 20:22:28 +02:00
Frank Denis
95cf2e5da1 Style: remove unneeded extern 2019-06-10 20:22:22 +02:00
Frank Denis
23a86e3387 Update config.guess 2019-06-10 18:41:55 +02:00
Frank Denis
b1f0e2eb1d common.h -> private/common.h 2019-06-10 18:40:39 +02:00
Frank Denis
a4c41e5c8f Rename the remaining unprefixed functions
argon2_fill_first_blocks() can be static
2019-06-10 18:40:14 +02:00
Frank Denis
557c7eafab Rename fill_segment_* to argon2_fill_segment_* 2019-06-10 18:40:06 +02:00
Frank Denis
a03e6bd16d Rename a few common internal symbols 2019-06-10 18:40:01 +02:00
Frank Denis
d3787c23b8 Rename PBKDF2_SHA256 to escrypt_PBKDF2_SHA256 2019-06-10 18:39:53 +02:00
Frank Denis
7c44e6a8c4 Remove useless macros hiding the actual symbol names 2019-06-10 18:39:48 +02:00
Frank Denis
28554e80ed More DEV_MODE 2019-06-10 18:33:18 +02:00
Frank Denis
0cba1a075a Add explicit "env" command 2019-06-10 18:30:57 +02:00
Frank Denis
7ec812b83d Use MAP_CONCEAL on OpenBSD 2019-06-06 12:06:45 +02:00
Frank Denis
c322b1a63c Revert "scrypt: reject r == 0 and p == 0"
This reverts commit 00c8ecd1c492cf5c6599ff5b8c28ed35d54cf2a1.
2019-06-01 15:33:51 +02:00
Frank Denis
6e4c496171 Fix Findsodium.cmake SODIUM_VERSION_STRING regex 2019-06-01 10:32:51 +02:00
Frank Denis
d1a1d85e84 ChangeLog nits 2019-05-31 00:44:38 +02:00
Frank Denis
940ef42797 1.0.18 2019-05-30 21:57:51 +02:00
Frank Denis
575babb389 Comment 2019-05-30 17:33:59 +02:00
Frank Denis
a53fbe4d48 10% speedup on AVX2 for BLAKE2b
Thanks to Shunsuke Shimizu (@grafi-tt)
2019-05-30 17:32:45 +02:00
Frank Denis
eefb1cd79e Nits 2019-05-30 17:32:40 +02:00
Frank Denis
9094c7148c Update AppVeyor 2019-05-30 17:29:20 +02:00
Frank Denis
3e2c488f0d Update status badge 2019-05-29 20:55:08 +02:00
Frank Denis
4a6c0b6fc2 Add Azure Pipelines build status 2019-05-29 15:42:42 +02:00
Frank Denis
d438a807c0 Parallelize MinGW32 builds on Azure Pipelines 2019-05-29 15:33:33 +02:00
Frank Denis
fe2bdb39d5 Add support for Azure Pipelines 2019-05-29 14:41:48 +02:00
Frank Denis
611327356b Update config.guess 2019-05-28 20:42:08 +02:00
Frank Denis
a340407388 Update appveyor version 2019-05-28 20:40:59 +02:00
Frank Denis
77572665ad Support the enterprise version of Visual Studio 2019-05-28 20:28:01 +02:00
Frank Denis
39083793f5 Remove an unreliable scrypt test
Fixes #837
2019-05-21 13:15:37 +02:00
Frank Denis
d437e39034 autogen.sh: make config.guess update optional 2019-05-16 23:40:04 +02:00
Frank Denis
bb6f156412 Shorten 2019-05-12 13:53:53 +02:00
bas-d
5b9bc08d2f Properly check if console exists. 2019-05-12 13:53:38 +02:00
Frank Denis
1b419ba366 Findsodium.cmake didn't properly return the package version 2019-05-12 10:59:03 +02:00
Frank Denis
1ae8e5e3b0 Export UTF8ToString 2019-05-04 19:21:21 +02:00
Frank Denis
6522f1047a Regen, update config.{guess, sub} 2019-05-03 11:18:55 +02:00
Frank Denis
a37a90ccd2 Automatically update config.{sub,guess} in autogen.sh 2019-05-03 11:16:35 +02:00
Ilya Maykov
6bece9c8c4 Relax most __attribute__ ((nonnull)) to allow 0-length inputs to be NULL.
Justifications:
- crypto_(auth|hash|generichash|onetimeauth|shorthash)*:
  it's legal to hash or HMAC a 0-length message
- crypto_box*: it's legal to encrypt a 0-length message
- crypto_sign*: it's legal to sign a 0-length message
- utils:
  comparing two 0-length byte arrays is legal
  memzero on a 0-length byte array is a no-op
  converting an empty hex string to binary results in an empty binary string
  converting an empty binary string to hex results in an empty hex string
  converting an empty b64 string to binary results in an empty binary string
  converting an empty binary string to b64 results in an empty b64 string
  sodium_add / sodium_sub on zero-length arrays is a no-op

For the functions declared in utils.h, I moved the logic into private functions that
have the __attribute__ ((nonnull)) check, but they are only called when the
corresponding length argument is non-0. I didn't do this for the hash/box/sign
functions since it would have been a lot more work and quite a large refactor.

Only memset() may have issues with a zero length.

Fix tests, use guard page instead of NULL because of Wasm
2019-04-26 15:36:58 +02:00
Frank Denis
9b73106c8a Regen builds/Makefile.in to include MSVC 2019 files 2019-04-23 10:18:18 +02:00
Frank Denis
be8cfedea8 Make the stream and stream2 test object code 1000x smaller 2019-04-23 10:17:38 +02:00
Frank Denis
0f155d8736 Be positive 2019-04-23 10:17:33 +02:00
Frank Denis
fb29bda055 Just use some test vectors around the counter overflow 2019-04-23 10:17:25 +02:00
Frank Denis
d57cde5448 Remove useless tests, add more meaningful ones. 2019-04-23 10:17:10 +02:00
Frank Denis
cb5f937ca7 Additional salsa20 tests 2019-04-23 10:16:54 +02:00
Frank Denis
2e2de69de3 constcheck: ignore deprecated declarations 2019-04-22 19:53:26 +02:00
Frank Denis
96094c6feb Sort .gitignore 2019-04-22 19:53:26 +02:00
Frank Denis
a67b4592e4 Indent regen-msvc.py 2019-04-22 19:53:26 +02:00
Frank Denis
cab13fcf4c Recompress logo 2019-04-22 19:53:26 +02:00
Frank Denis
baa5b2ad32 Update the dotnet-core release script 2019-04-22 14:37:59 +02:00
Frank Denis
c09b00cf20 sync 2019-04-03 16:13:43 +02:00
Frank Denis
7c2e00285c Downgrade the TL solution for AppVeyor again 2019-04-03 16:05:09 +02:00