-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: fix crypto update() signatures #5500
doc: fix crypto update() signatures #5500
Conversation
@mscdex Does |
8de1720
to
92a60fd
Compare
@shigeki Fixed. |
Thanks. LGTM. |
As the originator of #5499, I have to say that the most misleading part of the doc is near the top of the page where it states
Once I saw that it should be OpenSSL compatible, it was easy to prove that it isn't. I don't know of a way to arrive at the same digest that node does using OpenSSL when multibyte characters are in the digest stream (which is probably just ignorance on my part). My real problem now is that other systems (e.g., JDK) digest the same as OpenSSL (there is no such thing as |
PR-URL: nodejs#5500 Reviewed-By: Shigeki Ohtsu <[email protected]>
92a60fd
to
af09a9c
Compare
PR-URL: #5500 Reviewed-By: Shigeki Ohtsu <[email protected]>
@mscdex should this go to lts? |
Probably, I think the API has been this way at least since v0.10 IIRC. |
+1 |
PR-URL: #5500 Reviewed-By: Shigeki Ohtsu <[email protected]>
PR-URL: #5500 Reviewed-By: Shigeki Ohtsu <[email protected]>
The default encoding for crypto methods was changed in v6.0.0, with v4.x keeping a default of `binary`. Ref: nodejs#5500 Fixes: nodejs#7712
The default encoding for crypto methods was changed in v6.0.0, with v4.x keeping a default of `binary`. Ref: #5500 Fixes: #7712 PR-URL: #7799 Reviewed-By: Claudio Rodriguez <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
This should not be landed in LTS v4. |
PullRequest nodejs#5522 and nodejs#5500 described the change of the default encoding into UTF8 in crypto functions. This however was only changed for the non-streaming API. The streaming API still used binary as the default encoding. This commit will change the default streaming API encoding to UTF8 to make both APIs behave the same. It will also add tests to validate the behavior.
PullRequest #5522 and #5500 described the change of the default encoding into UTF8 in crypto functions. This however was only changed for the non-streaming API. The streaming API still used binary as the default encoding. This commit will change the default streaming API encoding to UTF8 to make both APIs behave the same. It will also add tests to validate the behavior. Refs: #5522 Refs: #5500 PR-URL: #8611 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PullRequest nodejs#5522 and nodejs#5500 described the change of the default encoding into UTF8 in crypto functions. This however was only changed for the non-streaming API. The streaming API still used binary as the default encoding. This commit will change the default streaming API encoding to UTF8 to make both APIs behave the same. It will also add tests to validate the behavior. Refs: nodejs#5522 Refs: nodejs#5500 PR-URL: nodejs#8611 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Pull Request check-list
make -j8 test
(UNIX) orvcbuild test nosign
(Windows) pass withthis change (including linting)?
test (or a benchmark) included?
existing APIs, or introduces new ones)?
Affected core subsystem(s)
Description of change
Fixes: #5499