node/lib/internal/crypto
Ben Noordhuis 3b9a4035e7
crypto: optimize sign.update() and verify.update()
Use `StringBytes::InlineDecoder` to decode strings inputs in C++ land
instead of decoding them to buffers in JS land before passing them on
to the C++ layer. This is what the other update() methods already did.

PR-URL: https://github.com/nodejs/node/pull/31767
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2020-03-11 19:30:56 +01:00
..
certificate.js crypto: refactor array buffer view validation 2019-10-01 22:39:37 +02:00
cipher.js crypto: make update(buf, enc) ignore encoding 2020-03-05 15:24:17 -04:00
diffiehellman.js crypto: add crypto.diffieHellman 2020-01-21 10:49:20 -04:00
hash.js crypto: make update(buf, enc) ignore encoding 2020-03-05 15:24:17 -04:00
keygen.js crypto: add DH support to generateKeyPair 2020-01-21 10:49:14 -04:00
keys.js lib: replace Symbol global by the primordials Symbol 2019-12-08 13:38:58 +01:00
pbkdf2.js crypto: move pbkdf2 without digest to EOL 2020-02-05 17:41:19 -08:00
random.js crypto: improve randomBytes() performance 2020-01-28 06:56:16 -08:00
scrypt.js crypto: refactor array buffer view validation 2019-10-01 22:39:37 +02:00
sig.js crypto: optimize sign.update() and verify.update() 2020-03-11 19:30:56 +01:00
util.js lib: replace Symbol global by the primordials Symbol 2019-12-08 13:38:58 +01:00