Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Separate <string.h> polyfills from OPENSSL_mem*. #1781

Closed
wants to merge 1 commit into from

Conversation

briansmith
Copy link
Owner

Previously OPENSSL_memset and OPENSSL_memcpy diverged from BoringSSL by providing a fallback implementation for when we can't use <string.h>. Separate out those fallbacks into RING_mem* and re-sync OPENSSL_mem* with BoringSSL, except using RING_mem* in their implementations instead of the C standard library functions.

Re-sync aes_nohw.c with BoringSSL in the same manner.

Previously `OPENSSL_memset` and `OPENSSL_memcpy` diverged from BoringSSL
by providing a fallback implementation for when we can't use <string.h>.
Separate out those fallbacks into `RING_mem*` and re-sync `OPENSSL_mem*`
with BoringSSL, except using `RING_mem*` in their implementations
instead of the C standard library functions.

Re-sync aes_nohw.c with BoringSSL in the same manner.
@briansmith briansmith self-assigned this Oct 30, 2023
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #1781 (a57f3b7) into main (711d9fc) will decrease coverage by 0.06%.
The diff coverage is 86.66%.

@@            Coverage Diff             @@
##             main    #1781      +/-   ##
==========================================
- Coverage   96.01%   95.95%   -0.06%     
==========================================
  Files         138      139       +1     
  Lines       20788    20788              
  Branches      226      226              
==========================================
- Hits        19959    19948      -11     
- Misses        792      802      +10     
- Partials       37       38       +1     
Files Coverage Δ
crypto/internal.h 61.29% <100.00%> (-6.87%) ⬇️
include/ring-core/string_polyfill.h 100.00% <100.00%> (ø)
crypto/fipsmodule/aes/aes_nohw.c 86.45% <80.00%> (-0.35%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@briansmith briansmith closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant