-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
src: cleanup crypto more #57323
base: main
Are you sure you want to change the base?
src: cleanup crypto more #57323
Conversation
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57323 +/- ##
==========================================
+ Coverage 90.21% 90.22% +0.01%
==========================================
Files 630 630
Lines 185304 185289 -15
Branches 36266 36265 -1
==========================================
+ Hits 167171 167184 +13
+ Misses 11084 11072 -12
+ Partials 7049 7033 -16
🚀 New features to boost your workflow:
|
23c0321
to
5ed620a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
5ed620a
to
062c774
Compare
This comment was marked as outdated.
This comment was marked as outdated.
062c774
to
a8744d3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a8744d3
to
defdb2f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
There are relevant CI failures to investigate before this can land. |
This comment was marked as outdated.
This comment was marked as outdated.
0f7222f
to
e025d3f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
e025d3f
to
2c83aa7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
2c83aa7
to
066f084
Compare
This comment was marked as outdated.
This comment was marked as outdated.
066f084
to
76afdc6
Compare
* Use ncrypto APIs where appropriate * Remove obsolete no-longer used functions * Improve error handling a bit
To simplify handling of boringssl/openssl, move secure heap impl to ncrypto. Overall the reduces the complexity of the code in crypto_util by eliminating additional ifdef branches.
The ByteSource does not currently know how to free a DataPointer allocated on the secure heap, so just verify. DataPointers on the secure heap are not something that users can allocate on their own. Their use is rare. Eventually ByteSource is going to be refactored around ncrypto APIs so these additional checks should be temporary.
76afdc6
to
f6d919c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
24bbedd
to
b63dd85
Compare
CI: https://ci.nodejs.org/job/node-test-pull-request/65625/ 💛 sorry for the extra CI runs.. the issue is happening only with openssl 1.1.1 and I have no way of testing it locally and the CI output is not enough to fully diagnose what the issues are... so... repeated CI runs are necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
More cleanup in the crypto code... encapsulating stuff into ncrypto, moving ifdef branches into ncrypto, removing some obsolete stuff, simplifying and improving some error handling, etc.