0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Jose M. Palacios Diaz 845633a7c6
crypto: better docs for cases where peer's public key is invalid
changes in c++ are in the computeSecret function, but the thrown
exception that was moved to JS land was in BufferToPoint
function, here i let the allocation error be thrown so the only value
returned is the nullptr that i use later to catch the error in
computeSecret, to then construct the exception in JS land.

an ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY error was added to errors.js
and with that, subsequent changes to docs and tests were made.

PR-URL: https://github.com/nodejs/node/pull/16849
Refs: https://www.iacr.org/archive/pkc2003/25670211/25670211.pdf
Fixes: https://github.com/nodejs/node/issues/16625
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2017-12-01 21:18:11 +01:00
..
cluster lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
crypto crypto: better docs for cases where peer's public key is invalid 2017-12-01 21:18:11 +01:00
http2 http2: use more descriptive names 2017-11-28 10:30:55 -08:00
loader module: Set dynamic import callback 2017-11-29 14:16:43 -08:00
process process: slightly simplify next tick execution 2017-11-28 08:48:30 -05:00
repl repl: support top-level await 2017-11-16 15:42:46 -08:00
streams lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
test
util util,assert: expose util.isDeepStrictEqual() 2017-10-25 22:30:37 -07:00
async_hooks.js async_hooks: remove deprecated API 2017-11-22 11:25:03 +01:00
bootstrap_node.js process: add flag for uncaught exception abort 2017-11-29 15:58:42 +01:00
buffer.js buffer: move setupBufferJS to internal 2017-10-25 10:36:17 -07:00
child_process.js async_wrap: add provider types for net server 2017-11-28 02:50:54 +01:00
encoding.js lib: improve the usage of TypeError[INVALID_ARG_TYPE] 2017-11-12 11:04:06 -08:00
errors.js crypto: better docs for cases where peer's public key is invalid 2017-12-01 21:18:11 +01:00
freelist.js
fs.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
http.js http2: introducing HTTP/2 2017-08-04 12:55:44 -07:00
inspector_async_hook.js inspector: no async tracking for promises 2017-11-21 13:57:05 +01:00
linkedlist.js linkedlist: correct grammar in comments 2017-07-31 08:03:19 +08:00
module.js module: support custom paths to require.resolve() 2017-10-25 09:14:14 -04:00
net.js
os.js os: add CIDR support 2017-08-14 15:43:10 -04:00
process.js process: add flag for uncaught exception abort 2017-11-29 15:58:42 +01:00
querystring.js
readline.js
readme.md
repl.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
safe_globals.js module: Allow runMain to be ESM 2017-09-07 15:18:32 -05:00
socket_list.js child_process: fix memory leak in .fork() 2017-09-30 22:18:29 -07:00
tls.js tls: deprecate parseCertString & move to internal 2017-09-13 16:54:35 -03:00
trace_events_async_hooks.js trace_events: add executionAsyncId to init events 2017-11-24 21:52:11 +01:00
url.js lib: improve the usage of TypeError[INVALID_ARG_TYPE] 2017-11-12 11:04:06 -08:00
util.js util: use @@toStringTag 2017-12-01 21:00:33 +01:00
v8_prof_polyfill.js lib: replace String concatenation with template 2017-11-11 11:59:09 +01:00
v8_prof_processor.js build: runtime-deprecate requiring deps 2017-11-13 10:50:12 -08:00
v8.js lib: remove use of Debug.MakeMirror() 2017-11-24 00:13:44 +01:00
wrap_js_stream.js lib: refactor wrap_js_stream for ES6/readability 2017-10-19 18:06:27 +02:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.