Files
node/lib
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-01-30 14:07:32 +00:00
…
2021-09-16 09:44:12 -04:00
2022-02-05 08:36:48 -08:00
…
2022-02-05 08:36:48 -08:00
…
2021-06-01 21:06:18 +02:00
2021-11-12 23:26:20 +01:00
2021-04-30 10:59:28 -07:00
2022-02-22 17:30:02 -08:00
2022-02-23 21:06:00 +00:00
…
2022-02-05 08:36:48 -08:00
2021-07-07 14:50:47 +02:00
2021-06-26 16:31:30 +02:00