Files
node/lib
Ben Noordhuis 9ec8781502 crypto: make update(buf, enc) ignore encoding
Make the cipher/decipher/hash/hmac update() methods ignore the input
encoding when the input is a buffer.

This is the documented behavior but some inputs were rejected, notably
when the specified encoding is 'hex' and the buffer has an odd length
(because a _string_ with an odd length is never a valid hex string.)

The sign/verify update() methods work okay because they use different
validation logic.

Fixes: https://github.com/nodejs/node/issues/31751

PR-URL: https://github.com/nodejs/node/pull/31766
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2020-03-05 15:24:17 -04:00
..
2020-02-18 22:15:50 -08:00
2019-12-17 08:11:13 -05:00
2020-02-08 21:40:49 -05:00
2020-01-21 10:49:20 -04:00
2020-03-03 10:21:19 -08:00
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2020-02-05 17:50:42 -08:00
2020-02-26 21:10:36 -08:00
2019-12-11 16:38:06 -06:00
2020-01-07 21:49:20 -05:00