Commit Graph

2514 Commits

Author SHA1 Message Date
Frank Denis
9d706253ff + AVX2 ChaCha20 implementation 2017-02-26 22:46:34 +01:00
Frank Denis
9dc21def26 Move declarations, for consistency 2017-02-26 22:18:09 +01:00
Frank Denis
8d256f0edd With the full counter, the limit is comfortable enough (2^70) 2017-02-26 22:04:50 +01:00
Frank Denis
d155bfd686 Remove useless brackets 2017-02-26 21:59:52 +01:00
Frank Denis
17ebc9cb07 Import SSE2 & AVX2 salsa20 implementations 2017-02-26 21:32:00 +01:00
Frank Denis
c0c645da45 Test crypto_kdf constants, add _PRIMITIVE 2017-02-26 21:30:40 +01:00
Frank Denis
8a213f021c Remove useless prototypes 2017-02-26 21:26:14 +01:00
Frank Denis
15f1904f00 Use the AVX2 salsa20 implementation if the CPU supports it 2017-02-26 21:23:39 +01:00
Frank Denis
d85454c3c7 No // comments 2017-02-26 21:23:17 +01:00
Frank Denis
5088ca52f6 Use <impl>/<primitive_name>*.[ch], not <impl>/<operation>_<primitive_name>* 2017-02-26 20:54:08 +01:00
Frank Denis
5ccf9c2f46 salsa20-xmm6int: don't hardcode the number of rounds 2017-02-26 19:04:34 +01:00
Frank Denis
78330822cb Save trees 2017-02-26 19:02:23 +01:00
Frank Denis
294007a16f Import u0.h 2017-02-26 19:00:01 +01:00
Frank Denis
e0ee69874f xmm6int: optimize the last block 2017-02-26 18:56:27 +01:00
Frank Denis
45160a0f78 Define the HAVE_* macros for SIMD instructions on Visual Studio
This avoids a lot of redundant preprocessor checks
2017-02-26 18:22:14 +01:00
Frank Denis
d781ec3cdf Add missing header for _crypto_stream_salsa20_pick_best_implementation 2017-02-26 17:50:11 +01:00
Frank Denis
e08843d138 Enable the xmm6int implementation on Visual Studio, too 2017-02-26 17:48:39 +01:00
Frank Denis
0a4418a25f Compile salsa20-xmm6int only if HAVE_EMMINTRIN_H is defined
This is redundant with the next check, and needs to be adjusted for Visual Studio
2017-02-26 17:41:03 +01:00
Frank Denis
e4a43d5cff Nits 2017-02-26 17:35:30 +01:00
Frank Denis
ed8277a2f6 Use a single way for stream_salsa20_ref conditional inclusion 2017-02-26 17:27:28 +01:00
Frank Denis
47a3461793 xor_salsa2012.c is not used any more 2017-02-26 17:21:13 +01:00
Frank Denis
199aa0efa2 Update AUTHORS 2017-02-26 17:21:04 +01:00
Frank Denis
3b3613d464 Add missing header files to the distfiles 2017-02-26 17:17:00 +01:00
Frank Denis
c58cbcbd90 Indent 2017-02-26 17:13:55 +01:00
Frank Denis
9294e2e699 Revamp the salsa20 implmentations and structure
- Factorize core_salsa20{20,12,8}
- Add support for multiple salsa20 implementations
- Replace the assembly SSE2 implementation with its equivalent using intrisics
2017-02-26 16:49:15 +01:00
Frank Denis
d203d87d2f const static -> static const 2017-02-26 16:10:32 +01:00
Frank Denis
881f8ab599 initstate -> initial_state 2017-02-26 00:11:58 +01:00
Frank Denis
d860121ebc Fix previous 2017-02-25 21:01:52 +01:00
Frank Denis
4e6091b347 Merge branch 'master' of https://github.com/jedisct1/libsodium
* 'master' of https://github.com/jedisct1/libsodium:
  spelling fixes (touches code in tests) (#494)
  Feature/spelling (#495)
2017-02-25 21:00:52 +01:00
Frank Denis
eb1c92d2ec Reformat the scrypt tests 2017-02-25 20:59:54 +01:00
Frank Denis
1295857ae5 Remove unused macros 2017-02-25 20:59:45 +01:00
ka7
76e87fb547 spelling fixes (touches code in tests) (#494) 2017-02-25 14:21:30 +01:00
ka7
21174cddc3 Feature/spelling (#495)
* spelling fixes (comments only)

* spelling fixes (comments only)
2017-02-25 14:21:10 +01:00
Frank Denis
0a5a40de5b Trim spaces 2017-02-24 19:23:55 +01:00
Frank Denis
8fb5918fb6 Add a test for siphashx24 2017-02-24 19:23:14 +01:00
Frank Denis
81e37c6aa6 Add shorthash_siphashx24_*(): 128-bit Siphash 2017-02-24 19:06:21 +01:00
Frank Denis
710c36deb9 s/portable/nacl/g 2017-02-23 12:05:09 +01:00
Frank Denis
d26c8adf84 Get rid of core_hchacha20.h 2017-02-23 12:02:56 +01:00
Frank Denis
7bbeba5723 Indent 2017-02-23 11:30:21 +01:00
Frank Denis
4a958f9e9e Indent 2017-02-23 11:28:12 +01:00
Frank Denis
f4da7fe314 Indent 2017-02-23 11:27:45 +01:00
Frank Denis
3d96ea4b6a Indent 2017-02-23 11:27:19 +01:00
Frank Denis
4037465983 Indent 2017-02-23 11:26:24 +01:00
Frank Denis
d5bf3954d6 Indentx 2017-02-23 11:25:09 +01:00
Frank Denis
cac2dde218 Indent 2017-02-23 11:24:48 +01:00
Frank Denis
cadee98e13 Indentx 2017-02-23 11:23:50 +01:00
Frank Denis
efbc49f100 Indent 2017-02-23 11:23:19 +01:00
Frank Denis
434e3691ba Indent 2017-02-23 11:22:58 +01:00
Frank Denis
e747cec677 Indent 2017-02-23 11:22:36 +01:00
Frank Denis
3cce789304 Indent 2017-02-23 11:22:00 +01:00