Frank Denis
50002f78ed
Do not forget Daniel Dinu and Thomas Pornin
...
in the list of contributors to the Argon2 code
2015-12-30 15:44:46 +01:00
Frank Denis
29fb06cd23
Check for crypto_pwhash_*limit_moderate() presence
2015-12-30 11:59:15 +01:00
Frank Denis
ff32e8f34b
argon2: memory usage is m_cost KiB, not 2^m_cost KiB
2015-12-30 00:10:57 +01:00
Frank Denis
dfa0ee2753
We don't need no external memory allocators
2015-12-30 00:09:16 +01:00
Frank Denis
a78161981c
Check for _mm_set_epi64x() usability in the SSE2 test
2015-12-29 23:18:28 +01:00
Frank Denis
1635f98638
Add sodium/crypto_pwhash.h to the distribution
2015-12-29 22:42:33 +01:00
Frank Denis
69cfab0522
We don't need the ability to use a custom allocator
2015-12-29 22:33:36 +01:00
Frank Denis
28ca446f73
argon2: don't dereference a pointer before testing it for NULL
2015-12-29 22:22:54 +01:00
Frank Denis
77a61b8ad7
Test the high-level crypto_pwhash() functions
2015-12-29 21:53:56 +01:00
Frank Denis
b5ed4cc34b
Add high-level crypto_pwhash() API
2015-12-29 21:49:55 +01:00
Frank Denis
c7b9178d5a
Consistent #include guards
2015-12-29 21:35:45 +01:00
Frank Denis
654a2b3f95
Shorten a few test argon2i test vectors for V8
...
This is enough to reproduce an bug with Chrome
2015-12-29 21:06:23 +01:00
Frank Denis
7a5668f944
Credit Argon2 authors
2015-12-29 19:25:27 +01:00
Frank Denis
61c5b4a35c
argon2i test: remove tv3 for now; it's too much for web browsers
...
Proper test vectors will be reintroduced later
2015-12-29 19:16:31 +01:00
Frank Denis
2bd822b1c9
Pasto
2015-12-29 19:13:48 +01:00
Frank Denis
6d9f2cae79
argon2: ensure that memory is cacheline aligned; use mmap(2) if possible
2015-12-29 19:00:52 +01:00
Frank Denis
9788147270
Require less indentation
2015-12-29 18:41:38 +01:00
Frank Denis
9ef45f8456
argon2: make blocks allocation indirect, keep the base address
2015-12-29 18:38:33 +01:00
Frank Denis
d39202c16c
Put the browser-js.done marker at the right place
2015-12-29 18:02:24 +01:00
Frank Denis
c48eaad3cd
Don't require too much memory for the pwhash_argon2i() test
...
so that the Javascript version can run in web browsers
2015-12-29 17:54:21 +01:00
Frank Denis
0ec2f464c8
Comment doesn't seem to be relevant any more
2015-12-29 17:53:13 +01:00
Frank Denis
96c37fc9a4
Indent
2015-12-29 17:51:00 +01:00
Frank Denis
bd44342a1e
Remove unneeded extern "C"
2015-12-29 17:24:31 +01:00
Frank Denis
71056e2f75
Add missing header
2015-12-29 17:22:45 +01:00
Frank Denis
7a95e921ac
Add tests for pwhash_argon2i
2015-12-29 17:12:23 +01:00
Frank Denis
14bf02af88
Rename the pwhash test as as pwhash_scrypt
2015-12-29 16:14:19 +01:00
Frank Denis
dfdf65c4f0
Add crypto_pwhash_argon2i_(memlimit|opslimit)_moderate()
...
Import missing crypto_pwhash_argon2i.h by the way
2015-12-29 16:07:47 +01:00
Frank Denis
d740901df0
Have --enable-opt imply -Ofast
2015-12-29 15:46:23 +01:00
Frank Denis
387dd75e88
Require at least SSSE3 for optimized implementations
2015-12-29 15:34:16 +01:00
Frank Denis
a916ec93c1
crypto_pwhash_argon2i_*()
2015-12-29 13:29:24 +01:00
Frank Denis
da927a985f
Argon2 bits - Not exposed in the API yet
2015-12-29 11:24:11 +01:00
Frank Denis
9abc0fdbd0
Back go to dev mode
2015-12-28 18:51:25 +01:00
Frank Denis
953e959fba
Try --high-entropy-va on MinGW
2015-12-27 20:53:08 +01:00
Frank Denis
342f209cbe
Reorder
2015-12-25 15:58:54 +01:00
Frank Denis
4430d84d4a
1.0.8
2015-12-25 12:23:31 +01:00
Frank Denis
35b0264cdd
Get ready for the xmas release
2015-12-25 11:58:08 +01:00
Frank Denis
99666f588d
pkg-config is not required
2015-12-25 11:51:19 +01:00
Frank Denis
61fbc8eb63
lcov exclusion
2015-12-25 02:12:09 +01:00
Frank Denis
d839d74c89
lcov exclusion
2015-12-25 02:09:12 +01:00
Frank Denis
2f4603ff7e
lcov exclusion
2015-12-25 02:03:27 +01:00
Frank Denis
9784038ad0
Check crypto_box_detached() with a small order pk
2015-12-25 02:01:51 +01:00
Frank Denis
2f1cec7352
Test crypto_box_beforenm() with a small order pk
2015-12-25 02:00:01 +01:00
Frank Denis
cdd45e413a
lcov exclusion
2015-12-25 01:54:49 +01:00
Frank Denis
b80d037b4d
Check that crypto_box[_beforenm] fails with a small order pk
2015-12-24 19:35:05 +01:00
Frank Denis
60d05339fd
Constify
2015-12-24 19:00:42 +01:00
Frank Denis
ee3a5d8cf3
Update the Visual Studio solutions
2015-12-24 04:10:18 +01:00
Frank Denis
60f0b8749e
Mention that the gitbook online documentation requires Javascript
...
Add a link to the offline documentation
2015-12-24 03:39:41 +01:00
Frank Denis
f254415be4
Update .gitignore
2015-12-23 22:31:02 +01:00
Frank Denis
c08c21887e
Version bump
2015-12-23 21:15:12 +01:00
Frank Denis
8ca2c79a19
Annotations
2015-12-23 20:40:32 +01:00
Frank Denis
e936002885
2x
2015-12-23 18:29:47 +01:00
Frank Denis
386ce83df1
Test crypto_onetimeauth_update() with a null size
2015-12-22 14:32:14 +01:00
Frank Denis
82831cb7a6
Document constants
2015-12-22 12:19:32 +01:00
Frank Denis
15285e4743
Merge branch 'master' of https://github.com/jedisct1/libsodium
2015-12-22 09:52:30 +01:00
Frank Denis
1434812fae
Update the top-level Visual Studio solution
2015-12-22 09:52:05 +01:00
Frank Denis
7e1ea85f47
Remove dead code
2015-12-22 09:50:05 +01:00
Frank Denis
6996c383d3
Add warning
2015-12-20 17:29:33 +01:00
Frank Denis
764ceb7b7e
Fix empty __attribute__ definition for !__GNUC__
2015-12-20 17:20:30 +01:00
Frank Denis
7d819ca43d
Update ChangeLog
2015-12-19 21:26:08 +01:00
Frank Denis
c233490f06
Use memset() for fe_(0|1)()
...
This produces faster code with gcc.
constify precomputations by the way.
2015-12-19 01:51:20 +01:00
Frank Denis
90c49184fa
--enable-opt now enables -save-temps; remove -flto
2015-12-18 01:11:41 +01:00
Frank Denis
00914500e0
Use stdint types instead of crypto_*
2015-12-18 00:13:24 +01:00
Frank Denis
2b21e18224
Finish replacing shifts on integers with multiplications
2015-12-18 00:03:47 +01:00
Frank Denis
09128b88c7
Remove redundant blank lines
2015-12-17 17:02:01 +01:00
Frank Denis
29caedbee6
Spacing
2015-12-17 09:47:30 +01:00
Frank Denis
194ad15904
Explicitly call abort() if gettimeofday() doesn't succeed.
2015-12-17 09:45:02 +01:00
Frank Denis
c84ba1d17a
Aliasing
2015-12-17 08:37:57 +01:00
Frank Denis
03973542c7
Faster scalarmult_base() when using the ref10 implementation.
...
Use the Ed25519 scalar multiplication function followed by a conversion to
Montgomery coordinates to generate X25519 public keys.
Suggested a while ago by @CodesInChaos
2015-12-17 00:49:59 +01:00
Frank Denis
f430f3a936
Reorder to improve inlining
2015-12-16 16:01:00 +01:00
Frank Denis
6872237df9
Reorder functions to help with inlining
2015-12-16 15:53:13 +01:00
Frank Denis
b81f9cd436
Let the x25519 ref10 implementation use the core/curve25519/ref code
...
cswap can be a convenient operation to have in core later, but it is
not required yet.
2015-12-16 15:46:09 +01:00
Frank Denis
f9d982480b
Move most of sign/ed25519/ref10 to core/curve25519/ref10
2015-12-16 15:25:14 +01:00
Frank Denis
5f4763ce74
Simplify AVX availabity detection, add support for Visual Studio
2015-12-15 10:41:43 +01:00
Frank Denis
2ee3db59e7
Use HAVE_AVX_ASM instead of HAVE_AMD64_ASM
2015-12-14 16:52:55 +01:00
Frank Denis
ab4bade488
Check the extended control register to see if AVX is actually usable
2015-12-14 16:45:44 +01:00
Frank Denis
53570303d0
Reduce diff between curve25519/ref10 and ed25519/ref10, add missing includes
2015-12-14 12:43:41 +01:00
Frank Denis
76daa01963
ref10: inline, constify
2015-12-11 06:42:59 +01:00
Frank Denis
292b7bdf0d
Travis: Limit the double compilation to a single OS
2015-12-11 02:02:06 +01:00
Frank Denis
885529c5dc
The output of "make distclean" is not worth logging in Travis
2015-12-11 01:52:00 +01:00
Frank Denis
0c8834f776
Travis: Run the pre-C99 compilation test only once, with gcc
...
Compile without optimizations (and symbols) as an opportunity to also
check that it properly compiles under these conditions (re: force_inline issues)
2015-12-11 01:45:24 +01:00
Frank Denis
6ab5957544
Travis: check that we get the same code with&without named struct initializers
2015-12-11 01:04:33 +01:00
Frank Denis
04c7c3637e
Don't refine SODIUM_C99 if it has already been defined
2015-12-11 00:57:47 +01:00
Frank Denis
2d589f78be
Reorder struct members to keep values of the same type together
2015-12-11 00:26:32 +01:00
Frank Denis
bc371880d8
salsa20random stream struct members must match initializers
...
for compatibility with old non-C99 compilers.
Spotted and reported by @sneves
2015-12-11 00:10:19 +01:00
Frank Denis
b977a53d1d
printf("%llu") is not expected work on mingw32/Windows XP.
2015-12-10 16:38:26 +01:00
Frank Denis
e36400aa30
__attribute__((...)) -> __attribute__ ((...))
2015-12-10 11:26:14 +01:00
Frank Denis
e7d9129729
Run make distclean, not just make clean in the msys2 build scripts
...
for consistency with other build scripts
2015-12-10 10:26:15 +01:00
Frank Denis
0879c0bd22
Run "make clean" first in the build scripts
2015-12-10 10:24:19 +01:00
Frank Denis
47d8513bde
Fix offset in obsolete crypto_sign_edwards25519sha512batch_open
2015-12-10 09:41:17 +01:00
Frank Denis
9567be2df1
Revert "Use minimal builds on msys2"
...
This reverts commit cc29da17c3 .
2015-12-09 22:29:41 +01:00
Frank Denis
054579d3bb
Remove dead globals, bump the number of rounds in the box{7,8} tests
2015-12-09 01:43:57 +01:00
Frank Denis
d9e38003dc
Reduce the number of rounds in the box7 test, use guarded memory
2015-12-09 01:41:30 +01:00
Frank Denis
fb09514949
Shorten the verify1 test
2015-12-09 01:37:58 +01:00
Frank Denis
a84ae0170c
1.0.7 is ready
2015-12-08 16:58:21 +01:00
Frank Denis
731f2e1c12
Force alignment for _mm_loadl_epi64() in DEBUG mode
...
Required to work around gcc sanitizer
2015-12-07 22:44:24 +01:00
Frank Denis
ea43d1b18b
Shorten auth7
2015-12-07 17:41:20 +01:00
Frank Denis
26535c3d42
Remove browser-js.done or js.done, but not both
2015-12-07 12:50:24 +01:00
Frank Denis
bfa206ed4b
Let emscripten.sh support a --browser-tests switch
2015-12-07 12:38:22 +01:00
Frank Denis
4bf74c7574
C++ compat
2015-12-07 10:46:03 +01:00
Frank Denis
48b9c4e75c
Ignore test/default/browser, import HTML template
2015-12-07 09:57:49 +01:00