0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
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
..
_toc.md doc: update http URLs to https in doc/api 2017-11-23 16:06:35 -05:00
addons.md build: make test-doc and lint addon docs 2017-10-30 17:28:07 +08:00
all.md doc: prepare for v8/V8 linting in doc text 2017-11-22 08:24:46 -08:00
assert.md assert: add strict functionality export 2017-11-28 03:05:12 +01:00
async_hooks.md async_wrap: add provider types for net server 2017-11-28 02:50:54 +01:00
buffer.md doc: Add link for ECMAScript 2015 2017-11-27 19:17:14 -05:00
child_process.md doc: update subprocess.killed 2017-11-07 15:35:31 -05:00
cli.md process: add flag for uncaught exception abort 2017-11-29 15:58:42 +01:00
cluster.md doc: add note about using cluster without networking 2017-11-18 20:42:04 +01:00
console.md doc: add description for inspector-only console methods. 2017-11-22 09:12:18 -08:00
crypto.md crypto: better docs for cases where peer's public key is invalid 2017-12-01 21:18:11 +01:00
debugger.md test: remove obsolete debugger tests 2017-09-13 17:58:38 -03:00
deprecations.md assert: add strict functionality export 2017-11-28 03:05:12 +01:00
dgram.md doc: fix a link in dgram.md 2017-11-18 14:11:41 +02:00
dns.md doc: make default values and periods consistent 2017-10-30 11:08:47 +01:00
documentation.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
domain.md 2017-10-24, Node.js Version 8.8.0 (Current) 2017-10-24 17:50:44 -04:00
errors.md crypto: better docs for cases where peer's public key is invalid 2017-12-01 21:18:11 +01:00
esm.md doc: document resolve hook formats 2017-11-23 14:59:12 +01:00
events.md doc: avoid mentioning 'uncaughtException' 2017-11-18 21:07:06 +01:00
fs.md doc: fs.readFile is async but not partitioned 2017-11-22 11:10:23 -08:00
globals.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
http2.md http2: use 'close' event instead of 'streamClosed' 2017-11-28 10:30:39 -08:00
http.md doc: correct the wrong added meta data 2017-11-16 15:30:33 -05:00
https.md doc: add clientCertEngine to docs 2017-11-11 13:35:23 -08:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
intl.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
modules.md module: add builtinModules 2017-11-28 02:36:34 +01:00
n-api.md doc: use "JavaScript" instead of "Javascript" 2017-11-22 08:24:50 -08:00
net.md doc: make default values and periods consistent 2017-10-30 11:08:47 +01:00
os.md doc: make default values and periods consistent 2017-10-30 11:08:47 +01:00
path.md 2017-10-31, Version 9.0.0 (Current) 2017-10-31 12:59:12 -07:00
perf_hooks.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
process.md process: add flag for uncaught exception abort 2017-11-29 15:58:42 +01:00
punycode.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
querystring.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
readline.md doc: make default values and periods consistent 2017-10-30 11:08:47 +01:00
repl.md 2017-10-31, Version 9.0.0 (Current) 2017-10-31 12:59:12 -07:00
stream.md doc: fix typo in stream.md 2017-11-28 16:13:33 -05:00
string_decoder.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
synopsis.md doc: change v8 to V8 2017-11-18 22:25:05 +01:00
timers.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
tls.md doc: document tls.checkServerIdentity 2017-12-01 20:44:52 +01:00
tracing.md doc: add missing introduced_in comments 2017-11-19 18:10:05 +01:00
tty.md doc: add isTTY property documentation 2017-11-07 10:08:16 +00:00
url.md doc: fix typo in api doc of url.format(urlObject) 2017-11-25 16:47:01 +02:00
util.md util: use @@toStringTag 2017-12-01 21:00:33 +01:00
v8.md v8: migrate setFlagsFromString to internal/errors 2017-10-29 17:04:27 -07:00
vm.md doc: replace function with arrow function in vm.md 2017-11-26 09:11:55 -08:00
zlib.md doc: update http URLs to https in doc/api 2017-11-23 16:06:35 -05:00