boringssl/util
David Benjamin 884086e0e2 Remove x86_64 x25519 assembly.
Now that we have 64-bit C code, courtesy of fiat-crypto, the tradeoff
for carrying the assembly changes:

Assembly:
Did 16000 Curve25519 base-point multiplication operations in 1059932us (15095.3 ops/sec)
Did 16000 Curve25519 arbitrary point multiplication operations in 1060023us (15094.0 ops/sec)

fiat64:
Did 39000 Curve25519 base-point multiplication operations in 1004712us (38817.1 ops/sec)
Did 14000 Curve25519 arbitrary point multiplication operations in 1006827us (13905.1 ops/sec)

The assembly is still about 9% faster than fiat64, but fiat64 gets to
use the Ed25519 tables for the base point multiplication, so overall it
is actually faster to disable the assembly:

>>> 1/(1/15094.0 + 1/15095.3)
7547.324986004976
>>> 1/(1/38817.1 + 1/13905.1)
10237.73016319501

(At the cost of touching a 30kB table.)

The assembly implementation is no longer pulling its weight. Remove it
and use the fiat code in all build configurations.

Change-Id: Id736873177d5568bb16ea06994b9fcb1af104e33
Reviewed-on: https://boringssl-review.googlesource.com/25524
Reviewed-by: Adam Langley <agl@google.com>
2018-02-01 21:44:58 +00:00
..
bot [ndk] Change ndk deps in src and relocate to third_party/boringssl 2018-01-22 21:08:28 +00:00
fipstools Support AVX-512 instructions with a writemask in delocate. 2018-01-22 18:00:18 +00:00
32-bit-toolchain.cmake Inital import. 2014-06-20 13:17:32 -07:00
all_tests.go Make all_tests.go output cleaner. 2017-09-28 21:28:50 +00:00
all_tests.json Convert example_mul to GTest. 2017-07-10 19:28:29 +00:00
BUILD.toplevel For Android there is no need to expicitly link pthread lib. 2017-10-25 00:21:46 +00:00
check_imported_libraries.go Add a tool to check dependencies. 2017-07-25 20:03:46 +00:00
convert_comments.go Maintain comment alignment when converting. 2017-08-02 22:00:50 +00:00
diff_asm.go Fix diff_asm.go and revert another local MASM perlasm change. 2017-05-11 23:30:01 +00:00
doc.config Add chacha.h to the list of documented headers. 2017-10-12 15:27:34 +00:00
doc.css Link back to the main page in documentation. 2016-05-20 15:36:00 +00:00
doc.go Teach doc.go about // comments. 2017-08-05 02:31:10 +00:00
embed_test_data.go Convert p256-x86_64_test to GTest. 2017-06-09 18:50:56 +00:00
generate_build_files.py Remove x86_64 x25519 assembly. 2018-02-01 21:44:58 +00:00
generate-asm-lcov.py Fixing assembly coverage 2016-03-23 18:23:42 +00:00
generate-coverage.sh Fix generate-coverage.sh. 2017-03-21 14:54:47 +00:00
make_errors.go Fix up make_errors.go. 2017-11-01 16:32:56 +00:00
run_android_tests.go Add missing files to run_android_test.go. 2017-04-06 15:54:06 +00:00