FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

crypto: remove CipherBase::Init by tniessen · Pull Request #57787 · nodejs/node · GitHub

/ node Public

crypto: remove CipherBase::Init - #57787

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:crypto-remove-cipher-init
Apr 9, 2025
Merged

crypto: remove CipherBase::Init#57787
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:crypto-remove-cipher-init

Conversation

tniessen commented Apr 7, 2025

Copy link
Copy Markdown
Member

As far as I can tell, the iv parameter can never be undefined (but it can be null!), so this code appears to have been dead since Node.js 22.

This change removes dead code and adds a tiny test case for passing undefined as the IV.

Refs: #50973

As far as I can tell, the `iv` parameter can never be `undefined` (but
it can be `null`!), so this code appears to have been dead since
Node.js 22.

This change removes dead code and adds a tiny test case for passing
`undefined` as the IV.

Refs: nodejs#50973
tniessen requested review from jasnell and panva April 7, 2025 22:00

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Apr 7, 2025

codecov Bot commented Apr 7, 2025
edited
Loading

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.24%. Comparing base (b85505d) to head (5c90482).
Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #57787      +/-   ##
==========================================
- Coverage   90.24%   90.24%   -0.01%     
==========================================
  Files         630      630              
  Lines      185198   185249      +51     
  Branches    36295    36329      +34     
==========================================
+ Hits       167140   167173      +33     
+ Misses      10987    10974      -13     
- Partials     7071     7102      +31     
Files with missing lines Coverage Δ
lib/internal/crypto/cipher.js 98.27% <100.00%> (+0.65%) ⬆️
src/crypto/crypto_cipher.cc 77.05% <ø> (+4.59%) ⬆️
src/crypto/crypto_cipher.h 60.00% <ø> (ø)

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

tniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 7, 2025
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 7, 2025

This comment was marked as outdated.

tniessen added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Apr 7, 2025

This comment was marked as outdated.

This comment was marked as outdated.

tniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 8, 2025
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 8, 2025

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 9, 2025
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 9, 2025
nodejs-github-bot merged commit 9bbbe60 into nodejs:main Apr 9, 2025

Copy link
Copy Markdown
Collaborator

Landed in 9bbbe60

RafaelGSS pushed a commit that referenced this pull request May 1, 2025
As far as I can tell, the `iv` parameter can never be `undefined` (but
it can be `null`!), so this code appears to have been dead since
Node.js 22.

This change removes dead code and adds a tiny test case for passing
`undefined` as the IV.

Refs: #50973
PR-URL: #57787
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
RafaelGSS pushed a commit that referenced this pull request May 2, 2025
As far as I can tell, the `iv` parameter can never be `undefined` (but
it can be `null`!), so this code appears to have been dead since
Node.js 22.

This change removes dead code and adds a tiny test case for passing
`undefined` as the IV.

Refs: #50973
PR-URL: #57787
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
aduh95 added the backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. label May 6, 2025

aduh95 commented May 6, 2025

Copy link
Copy Markdown
Contributor

This doesn't land cleanly on v22.x-staging

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL