Repository navigation
Use a prefix different from GFp_ so *ring* 0.17.x and an older version of *ring* can coexist. - #1267
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1267 +/- ##
==========================================
+ Coverage 92.86% 93.13% +0.27%
==========================================
Files 116 116
Lines 17874 18097 +223
Branches 195 195
==========================================
+ Hits 16598 16855 +257
+ Misses 1242 1207 -35
- Partials 34 35 +1
Continue to review full report at Codecov.
|
f35635f to
03602d8
Compare
The symbol prefixing infrastructure wasn't merged when it was originally added to BoringSSL. Import it now so *ring* can start using it.
7c9e915 to
fbb0cac
Compare
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.
…ything. "GFp_" isn't in the code at all anymore.
fbb0cac to
2068246
Compare
|
Issue #1268 tracks the remaining related work. |
| .cfi_push %r14 | ||
| push %r15 | ||
| .cfi_push %r15 | ||
| .cfi_push %r15 |
There was a problem hiding this comment.
I updated this file by merging the BoringSSL version to make sure they were in sync. The trailing whitespace is from BoringSSL, here and below.
| // See https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family | ||
| static uint64_t OPENSSL_xgetbv(uint32_t xcr) { | ||
| #if defined(_MSC_VER) && !defined(__clang__) | ||
| #if defined(_MSC_VER) |
There was a problem hiding this comment.
When I started this work, I undid the manual prefixing by merging some files from BoringSSL to minimize the difference. This is one of the differences that was unrelated that was a result of that process. I decided to stop building this PR that way because there were too many of these unrelated changes; the work to minimize the diff from BoringSSL is now tracked in #1269.
| &gen_block("en"); | ||
| &gen_block("de"); | ||
| # Decryption removed in *ring*. | ||
| # &gen_block("de"); |
There was a problem hiding this comment.
If we don't do this then we'd need to prefix the generated decrypt function. But since we don't need/want it, it's better to just delete it.
See the individual commit messages for details. Future work will automate changing the prefixes as part of the release process.