Frank Denis
e58ea31a61
Retarget the top solution to Visual Studio 2015
2015-11-01 08:29:49 -08:00
Frank Denis
2d3ed421b6
The SSE4.1 implementation is fine on MSVC/x86, reenable it
2015-11-01 17:27:40 +01:00
Frank Denis
e471999cc0
_mm_set_epi64x() is not required for Blake2b's SSE4.1 implementation
2015-11-01 17:10:27 +01:00
Frank Denis
af532e5dd1
Correct logic for compiling SSE4.1 code
2015-11-01 16:58:31 +01:00
Frank Denis
f801afd3d4
Use the SSSE3 implementation only on x86_64
2015-11-01 16:49:24 +01:00
Frank Denis
55a9a745e6
Enable optimized Blake2b implementations on MSVC
2015-11-01 16:22:33 +01:00
Frank Denis
60bdcb121e
Merge new files to the top MSVC solution
2015-11-01 07:15:25 -08:00
Frank Denis
082b68be6d
Remove references to orphan files in the top MSVC solution
2015-11-01 06:57:11 -08:00
Frank Denis
2a77b18ad8
Version bump (not released yet)
2015-11-01 15:45:36 +01:00
Frank Denis
debed38314
Check a return value in the secretbox_easy2 test
2015-11-01 14:45:35 +01:00
Frank Denis
ec246dea25
Remove warn_unused_result attribute where it is not critical
2015-11-01 14:40:20 +01:00
Frank Denis
9a07e480f2
Add __attribute((malloc)) to sodium_{allocarray,malloc}()
2015-11-01 14:36:16 +01:00
Frank Denis
094dac655e
Don't export sodium_runtime_get_cpu_features()
2015-11-01 14:32:42 +01:00
Frank Denis
17bcbbbd45
Force functions whose result must be checked to be checked
2015-11-01 13:57:51 +01:00
Frank Denis
2c9536d1f9
Merge branch 'master' of https://github.com/jedisct1/libsodium
2015-11-01 13:31:57 +01:00
Frank Denis
99850abecc
Mark edwards25519sha512batch functions as deprecated
2015-11-01 13:31:24 +01:00
Frank Denis
7d3dddae54
We already have a macro to force alignment, reuse it
2015-11-01 13:10:23 +01:00
Frank Denis
1d4a2aabac
Reindent
2015-11-01 12:51:04 +01:00
Frank Denis
95af650a3c
Import onetimeauth_poly1305.h
2015-11-01 12:50:10 +01:00
Frank Denis
f5caa454b7
Skip a useless test on non-emscripten platforms
2015-11-01 12:45:58 +01:00
Frank Denis
2d04b79f5c
Merge auth_poly1305_donna.c and verify_poly1305_donna.c
2015-11-01 12:35:49 +01:00
Frank Denis
19308c5d5b
Bump the library major version, since some functions have been removed
...
Even though these functions were exported, the number of applications
using them directly is very likely to be zero.
Still, bump the major library version to be safe and compliant.
2015-11-01 12:23:21 +01:00
Frank Denis
b3b8e97275
Remove checksum files
2015-11-01 12:20:11 +01:00
Frank Denis
68c52f2188
Simplify crypto_onetimeauth_poly1305() internal implementation API
2015-11-01 12:18:30 +01:00
Frank Denis
1d15772716
Remove unused define
2015-11-01 11:49:53 +01:00
Frank Denis
384dd997a8
Set the impl of the Blake2b compression function once, at init time.
2015-11-01 11:34:32 +01:00
Frank Denis
d62451ce9f
Fix compilation on platforms without SSE
2015-11-01 11:13:58 +01:00
Frank Denis
03546ef367
There's no such thing as SSSE2 :)
2015-11-01 11:11:57 +01:00
Frank Denis
65ccbaa9b7
Passing unaligned pointers to _mm_{load|store}u_*() is fine
2015-11-01 07:26:32 +01:00
Frank Denis
7dfed3913e
unconstify
2015-11-01 07:25:37 +01:00
Frank Denis
b935486460
Select the fastest Blake2b implementation at runtime
2015-11-01 06:29:22 +01:00
Frank Denis
d7a0bdd564
Remove blake2b-opt from the tree
2015-11-01 06:27:25 +01:00
Frank Denis
920c459ac3
Link optimized compression functions for Blake2b
2015-11-01 06:09:04 +01:00
Frank Denis
ca4361f55f
Remove extra spaces
2015-11-01 02:53:22 +01:00
Frank Denis
b9b722ce22
Externalize the blake2b compression function
2015-11-01 02:53:22 +01:00
Frank Denis
7f238f4c8b
Assume that optimized Blake2b versions can use at least SSSE3
2015-11-01 02:53:22 +01:00
Frank Denis
a3d3f351b7
Sync blake2-impl.h with ref
2015-11-01 02:53:22 +01:00
Frank Denis
28fb7bdb37
Reduce diffs between blake2b-ref and blake2b-opt
2015-11-01 02:53:22 +01:00
Frank Denis
e59641cc9a
Remove traces of AVX & XOP specific optimizations
2015-11-01 02:53:22 +01:00
Frank Denis
6881890d7e
Import vanilla blake2b optimized implementation
2015-11-01 02:53:22 +01:00
Frank Denis
aba184e500
THANKS << Project ArteMisc for Libstodium
2015-11-01 02:52:28 +01:00
Frank Denis
e7bb1e200e
Do not export crypto_onetimeauth_poly1305_set_implementation()
...
This is a relique from very early versions of libsodium that
should eventually just go away.
2015-11-01 01:27:10 +01:00
Frank Denis
dd53b90175
\#if defined( ) -> #ifdef
2015-11-01 01:14:55 +01:00
Frank Denis
c8ae529774
Remove extra empty lines
2015-11-01 01:14:49 +01:00
Frank Denis
3361e20a87
blake2b-ref micro-optimizations
2015-11-01 01:14:44 +01:00
Frank Denis
26fdfec99b
Add sodium_runtime_has_ssse3() and sodium_runtime_has_sse41()
2015-10-31 23:42:44 +01:00
Frank Denis
84695c8d42
Make sodium_compare() work on little-endian numbers as expected
2015-10-31 22:36:54 +01:00
Frank Denis
9a42ee1064
UL => ULL
2015-10-31 01:35:40 +01:00
Frank Denis
d47cb42f5a
Replace some memcpy() with a local loop
2015-10-30 21:32:19 +01:00
Frank Denis
8deb15bd85
Refuse an output length > 256 Gb in crypto_stream_chacha20_ietf_ref()
2015-10-30 20:47:37 +01:00