Commit Graph

1864 Commits

Author SHA1 Message Date
Frank Denis
b40663a10c Don't assume that substracting unrelated pointers is acceptable.
Having to increment two pointers instead of one is the price to
pay for portability, but it's not that big of a deal here.
2015-11-27 01:06:54 +01:00
Frank Denis
ef3a073d13 Avoid unnecessary casts for the nonce/counter 2015-11-27 00:09:57 +01:00
Frank Denis
d341893ec6 format 2015-11-26 22:34:40 +01:00
Frank Denis
c160dbc9cd Use uint128_t consistently 2015-11-26 22:34:21 +01:00
Frank Denis
85dbcd6c52 Replace some casts with memcpy() 2015-11-26 22:32:29 +01:00
Frank Denis
457ff09ee7 Revert 2015-11-26 19:07:37 +01:00
Frank Denis
23b4e21680 Directly use the internal state type when possible 2015-11-26 18:28:08 +01:00
Frank Denis
9a2a278715 Use memset() instead of a cast 2015-11-26 18:21:31 +01:00
Frank Denis
04a59d0bb0 Fix aliasing violations, even though we always disable strict aliasing 2015-11-26 18:19:24 +01:00
Frank Denis
a2540cb103 Avoid pointer casting when using Emscripten 2015-11-26 17:07:57 +01:00
Frank Denis
a5b4926a19 Keep it simple to avoid issues with the different heaps in Emscripten 2015-11-26 17:06:18 +01:00
Frank Denis
20a13f60b5 Move Ted Krovetz to the implementors list 2015-11-26 12:39:46 +01:00
Frank Denis
ff37903a00 Rephrase 2015-11-26 12:36:26 +01:00
Frank Denis
2cbb5de483 Move size checks to the main chacha20 encryption function 2015-11-26 12:34:49 +01:00
Frank Denis
1cd715eb5d Remove unused code 2015-11-26 12:27:31 +01:00
Frank Denis
cfdf25697e Constify pointers & acknowledge that unaligned accesses are okay 2015-11-26 12:26:19 +01:00
Frank Denis
ed64bfdf17 C++ compat 2015-11-25 16:41:36 +01:00
Frank Denis
1e71f849b5 1.0.7 (not released yet) 2015-11-25 16:12:42 +01:00
Frank Denis
7f311aa39b Update ChangeLog 2015-11-25 16:09:07 +01:00
Frank Denis
96d83ec341 Update ChangeLog 2015-11-25 15:59:13 +01:00
Frank Denis
9a96bdc4b3 Don't use C99 when it's not required 2015-11-25 15:58:05 +01:00
Frank Denis
8011838dcd Use more portable types 2015-11-25 15:48:03 +01:00
Frank Denis
508a04896d Remove blank line 2015-11-25 15:44:18 +01:00
Frank Denis
714bf75c6f !__GNUC__ : not yet 2015-11-25 15:35:20 +01:00
Frank Denis
8f9faa2229 Use chacha20_vec if available 2015-11-25 15:32:54 +01:00
Frank Denis
fce550257e + Ted Krovetz 2015-11-25 15:26:35 +01:00
Frank Denis
fb42d081d7 Link chacha20_vec 2015-11-25 15:23:22 +01:00
Frank Denis
31c4df3f59 x -> ctx 2015-11-25 15:08:48 +01:00
Frank Denis
a27011ce48 + missing stdint.h inclusion 2015-11-25 14:21:21 +01:00
Frank Denis
a879c090b4 No need to zero the counter 2015-11-25 14:19:44 +01:00
Frank Denis
1c8e34577f Less deterministic crypto_verify_*() tests 2015-11-25 14:10:36 +01:00
Frank Denis
65fbe15fa3 Slightly faster verify_{16,32,64} 2015-11-25 12:19:17 +01:00
Frank Denis
d5fd75dcc7 Make crypto_stream_chacha20 modular like the rest
In preparation for optimized implementations
2015-11-25 01:17:37 +01:00
Frank Denis
82b41835c5 Support the IBM compiler 2015-11-23 17:06:33 +01:00
Frank Denis
d8b9b395a3 Mark everything as static in tests 2015-11-23 16:07:13 +01:00
Frank Denis
cb9d52760c Update the Visual Studio 2015 solution 2015-11-23 15:36:28 +01:00
Frank Denis
4ea538076d Revert "Temporarily remove Coverity Scan button, as Coverity Scan is down"
This reverts commit b554ac4f26.
2015-11-22 13:35:29 +01:00
Frank Denis
65a91fd559 Remove api.h from the Visual Studio solutions 2015-11-22 12:44:45 +01:00
Frank Denis
9bfa30ae6a api.h -> stream_chacha20_ref.h 2015-11-22 00:02:00 +01:00
Frank Denis
e60139c17f Add missing headers 2015-11-21 13:32:07 +01:00
Frank Denis
28244907a1 Don't force inline 2015-11-21 13:14:48 +01:00
Frank Denis
f95a79065b api.h removal 2015-11-21 12:56:46 +01:00
Frank Denis
3a4cdb9c3d More api.h removal 2015-11-21 12:45:27 +01:00
Frank Denis
e33a505823 api.h removal 2015-11-21 12:36:42 +01:00
Frank Denis
16f12c1af3 More api.h removal 2015-11-21 12:35:02 +01:00
Frank Denis
fd0c47025f More api.h removal 2015-11-21 12:24:59 +01:00
Frank Denis
e5a6057724 Remove api.h reference 2015-11-21 12:17:46 +01:00
Frank Denis
db5eda696e crypto_hash/sha{256,512}/cp/api.h removal 2015-11-21 12:16:30 +01:00
Frank Denis
b7fdeb5ed3 Stop hiding function names with macros in salsa20 2015-11-21 09:07:52 +01:00
Frank Denis
68917b01cf Limit safe_read() to SSIZE_MAX bytes 2015-11-21 08:33:08 +01:00