16 Commits

Author SHA1 Message Date
Brian Smith
7886603cee Use some variant of "ring core" instead of "GFp" as a prefix for everything.
"GFp_" isn't in the code at all anymore.
2021-05-02 22:09:07 -07:00
Brian Smith
384f7d056b Replace manual FFI symbol prefixing with automatic symbol prefixing.
Revert the names used in the BoringSSL C/asm code to the names used in
BoringSSL. This substantially reduces the diff between *ring* and
BoringSSL for these files.

Use a variant of BoringSSL's symbol prefixing machinery to semi-
automatically prefix FFI symbols with the `GFp_` prefix. The names aren't
all exactly the same as before, because previously we *replaced* a
symbol's original prefix with the `GFp_` prefix; now we're prepending
`GFp_`. In the future we'll use a different prefix entirely.

This paves the way for using different prefixes for each version so that
multiple versions of *ring* can be linked into an executable at once.
2021-05-02 22:09:07 -07:00
Brian Smith
51a8ca1016 Fix Windows build. 2020-10-27 10:04:02 -07:00
Brian Smith
fd09534cd7 Merge BoringSSL 5d74463: Use |crypto_word_t| and |size_t| more consistently in ECC scalar recoding. 2020-10-19 16:54:10 -07:00
Brian Smith
0e7fdf5e91 Split ASSERT into dev_assert_secret and debug_assert_nonsecret. 2020-05-29 13:23:29 -05:00
Brian Smith
4399add9cf Don't require the C toolchain to provide assert.h for non-debug builds. 2019-07-15 21:33:55 -10:00
Brian Smith
544babc848 Merge BoringSSL 18254e2: Discuss the doubling case in windowed Booth representation. 2019-07-02 16:45:16 -10:00
Brian Smith
ff55f29642 Merge BoringSSL 326f121: Fix various mistakes in ec_GFp_nistp_recode_scalar_bits comment. 2019-07-02 16:42:41 -10:00
Brian Smith
4c345bca47 Enable -Wconversion and -Wsign-conversion. 2019-01-19 10:12:40 -10:00
Brian Smith
45e9714da9 Remove redundant includes of <assert.h>. 2018-11-15 16:17:39 -10:00
Brian Smith
975a2c29f1 Remove unneeded __cplusplus ifdefs. 2018-11-15 16:17:39 -10:00
Brian Smith
c19f1d3cd4 Remove redundant includes of GFp/type_check.h.
crypto/internal.h includes it so nothing else needs to.
2018-05-18 13:32:50 -10:00
Brian Smith
0027633cc9 Rename crypto_word_t to crypto_word.
Avoid using the `_t` suffix since that's undefined behavior in C.
2018-05-18 13:32:49 -10:00
Brian Smith
ea0c13f35d Remove GFp/bn.h dependencies from crypto/fipsmodule/ec. 2018-05-16 13:13:46 -10:00
Brian Smith
4c01b3a7f1 Merge BoringSSL 808f832: Run the comment converter on libcrypto. 2018-04-29 10:59:44 -10:00
Brian Smith
6e24235d6b Merge BoringSSL aacb72c: Move ec/ and ecdsa/ into fipsmodule/. 2018-04-27 16:30:52 -10:00