doc: Examples work when data exceeds buffer size#4811
doc: Examples work when data exceeds buffer size#4811garrows wants to merge 1 commit intonodejs:masterfrom
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
.updatedata was being discarded:Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt