Files
node/lib/internal
Tobias Nießen e8697cfe38 crypto: improve prime size argument validation
The current validation in JavaScript is insufficient and also produces
an incorrect error message, restricting the size parameter to 32-bit
values, whereas the C++ backend restricts the size parameter to the
positive range of an int.

This change tightens the validation in JavaScript and adapts the error
message accordingly, making the validation in C++ superfluous.

Refs: https://github.com/nodejs/node/pull/42207

PR-URL: https://github.com/nodejs/node/pull/42234
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-03-08 17:33:38 +00:00
..
2022-02-18 11:37:45 +00:00
2022-02-15 19:55:56 +01:00
2021-03-23 11:03:18 -05:00
…
2022-02-27 18:48:47 +00:00
2021-01-27 20:46:54 +02:00
…
2020-12-07 10:08:03 -08:00
2021-10-16 10:03:50 +08:00
2020-12-29 15:49:09 +00:00
…
2021-04-08 10:33:09 +02:00
2022-02-05 08:36:48 -08:00
2022-02-05 08:36:48 -08:00
2021-09-26 11:46:14 +00: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 modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.