crypto: add cipher update/final methods encoding validation#45990
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Jan 17, 2023
Merged
Conversation
Collaborator
|
Review requested:
|
VoltrexKeyva
previously requested changes
Dec 28, 2022
eba9755 to
9bbecff
Compare
9bbecff to
449cc81
Compare
Contributor
Author
|
Sorry, some-how missed js lint error in test. Fixed it, also updated first commit message. Please approve run @VoltrexKeyva |
Contributor
Author
|
@VoltrexKeyva any chance to approve?) |
panva
reviewed
Jan 1, 2023
449cc81 to
1853424
Compare
Collaborator
Collaborator
22 tasks
Collaborator
This was referenced Jan 3, 2023
1853424 to
47f8bc3
Compare
47f8bc3 to
ca20150
Compare
jasnell
approved these changes
Jan 13, 2023
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
This was referenced Jan 14, 2023
vitpavlenko
commented
Jan 16, 2023
| if (normalizedEncoding === undefined) { | ||
| throw new ERR_UNKNOWN_ENCODING(encoding); | ||
| } | ||
| assert(false, 'Cannot change encoding'); |
Contributor
Author
There was a problem hiding this comment.
why throw error by assert? it will be some internal error, no?
Member
There was a problem hiding this comment.
We can replace the assert with a coded error in a follow up
semver-major
Contributor
Author
There was a problem hiding this comment.
I think it is better to have a coded error, can I make the change? @panva
Member
There was a problem hiding this comment.
Sure, best wait until this change lands.
17 tasks
panva
approved these changes
Jan 17, 2023
Collaborator
|
Landed in 5a7d4a7 |
This was referenced Jan 18, 2023
Merged
Merged
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds encoding validation to update and final cipher methods.
Refs: #45189