-
Notifications
You must be signed in to change notification settings - Fork 30k
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: Examples work when data exceeds buffer size #4811
Conversation
@nodejs/crypto |
LGTM but the commit log should conform to the guidelines. Can you update it according to CONTRIBUTING.md? |
I think it is a kind of topics how to write a stream example in a doc rather than crypto feature. |
From a |
@eljefedelrodeodeljefe Okay, thanks. LGTM too. |
2cbcc10
to
b4a0f20
Compare
I've updated the commit message. Cheers. |
LGTM |
1 similar comment
LGTM |
PR-URL: #4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 26073dd |
Thanks for accepting! |
PR-URL: #4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
@jasnell added the lts-watch-v4.x label so this should get back-ported. |
this commit relies on a number of other doc changes to land in LTS first. |
PR-URL: #4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#4811 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
The crypto examples would only work when the input data was under 16 bytes. Above that, important data was being thrown away and decrypting them would give a difficult to debug error (see below).
Error given when
.update
data was being discarded:Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt