Commit Graph
817 Commits
Author SHA1 Message Date
Frank Denis 8b94965b71 Check HAVE_AMD64_ASM to assemble x86_64 code (or not), not __x86_64__ 2015-11-07 19:15:04 +01:00
Frank Denis 5ea53c32ee HMAC-SHA1 -> Blake2b in randombytes_salsa20
No functional changes but it's slightly faster and more readable.
2015-11-07 18:45:45 +01:00
Frank Denis 77c25db23a Rename s to hsigma, use hex, clarify that this constant is not a PRNG "seed" 2015-11-07 09:35:12 +01:00
Frank Denis c574ad86e5 Remove unused base_curve25519_donna_c64.c file from the repository 2015-11-07 00:16:32 +01:00
Frank Denis 03a67b6eeb noinst_HEADERS might be more correct than EXTRA_DIST 2015-11-05 20:23:27 +01:00
Frank Denis 18906a078c Unfortunately, some assemblers still don't know about AVX opcodes 2015-11-04 23:29:27 +01:00
Frank Denis 91fc9e298a C++ compat 2015-11-04 19:19:20 +01:00
Frank Denis ae2bbc4ff9 Drop extra backslash 2015-11-04 19:06:38 +01:00
Frank Denis 0ca0ff8923 Protect Sandy2x files against double compilation (Cocoapods...) 2015-11-04 19:03:13 +01:00
Frank Denis e5f768a96e Restore the initial file structure in sandy2x 2015-11-04 18:59:30 +01:00
Frank Denis c8825467d3 Revert in order to keep the original files 2015-11-04 18:43:42 +01:00
Frank Denis c294dfa284 Allow compilation on Linux again 2015-11-04 18:38:44 +01:00
Frank Denis 0cc725da6a Move the sandy2x implementation into a single file 2015-11-04 18:36:01 +01:00
Frank Denis 5e054b881b Typo 2015-11-04 18:23:01 +01:00
Frank Denis 999a1e96b6 Linux is not supported yet 2015-11-04 18:20:43 +01:00
Frank Denis 18910cf43a Let sodium_init() pick the fastest curve25519 implementation 2015-11-04 16:56:47 +01:00
Frank Denis 94437ae121 Enable the sandy2x implementation on CPUs with AVX support 2015-11-04 16:48:47 +01:00
Frank Denis 8251519650 Use the same ifndef convention as most other header files 2015-11-04 16:46:39 +01:00
Frank Denis 26c7aa123e scalarmult: move the constants down 2015-11-04 16:46:39 +01:00
Frank Denis 2bf84bb98c sandy2x: mask the top bit 2015-11-04 16:46:39 +01:00
Frank Denis ec72507c5f Link the sandy2x implementation
Do not use it yet, because it doesn't ignore the top bit
2015-11-04 16:46:39 +01:00
Frank Denis f56647ce4e Modularize scalarmult 2015-11-04 16:46:39 +01:00
Frank Denis 950f382a9b Add stackmarkings. Required at least for Hardened Gentoo. 2015-11-04 16:46:39 +01:00
Frank Denis 20eacd0ab7 Properly tag function symbols 2015-11-04 16:46:39 +01:00
Frank Denis 6774994531 Don't mix .globl and .global - Pick one, stick to it 2015-11-04 16:46:39 +01:00
Frank Denis 0c994ffa41 Sandy2x: make all the references relative 2015-11-04 16:46:39 +01:00
Frank Denis 7e00ec1a9b Import the raw Sandy2x curve25519 implementation 2015-11-04 16:46:39 +01:00
Frank Denis 9623e58c03 Add missing include 2015-11-04 16:46:18 +01:00
Frank Denis 049fd8fd6a Add sodium_runtime_has_avx() 2015-11-03 14:19:22 +01:00
Frank Denis 437b20161c Format 2015-11-01 22:16:44 +01: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 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 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