Skip to content

crypto: merge CipherBase.initiv into constructor #58166

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tniessen
Copy link
Member

@tniessen tniessen commented May 4, 2025

Now that CipherBase.init has been removed, instances of the class are always initialized by a call to initiv immediately after the constructor has returned. Instead of calling into C++ twice from createCipherBase, pass all required arguments to the constructor and fully initialize the instance before the constructor returns.

Now that `CipherBase.init` has been removed, instances of the class are
always initialized by a call to `initiv` immediately after the
constructor has returned. Instead of calling into C++ twice from
`createCipherBase`, pass all required arguments to the constructor and
fully initialize the instance before the constructor returns.
@tniessen tniessen added crypto Issues and PRs related to the crypto subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. labels May 4, 2025
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added 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 May 4, 2025
Copy link

codecov bot commented May 4, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 6 lines in your changes missing coverage. Please review.

Project coverage is 90.13%. Comparing base (6de55f7) to head (842cb98).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/crypto/crypto_cipher.cc 64.70% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58166      +/-   ##
==========================================
- Coverage   90.17%   90.13%   -0.05%     
==========================================
  Files         630      630              
  Lines      186503   186605     +102     
  Branches    36614    36630      +16     
==========================================
+ Hits       168187   168204      +17     
- Misses      11124    11185      +61     
- Partials     7192     7216      +24     
Files with missing lines Coverage Δ
lib/internal/crypto/cipher.js 98.26% <100.00%> (-0.01%) ⬇️
src/crypto/crypto_cipher.h 60.00% <ø> (ø)
src/crypto/crypto_cipher.cc 76.78% <64.70%> (-0.03%) ⬇️

... 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 tniessen added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels May 5, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 5, 2025
@nodejs-github-bot
Copy link
Collaborator

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 pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. 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.

3 participants