1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00
denoland-deno/cli/tests/node_compat/test
Divy Srivastava 10012c2fe3
feat(ext/node): add crypto.checkPrime API (#18465)
Towards #18455 

This commit implements `checkPrimeSync` and `checkPrime` in node:crypto
using the Miller-Rabin primality test (fun fact: it actually is a test
for composite numbers)

It first compares the candidate against many known small primes and if
not, proceeds to run the Miller-Rabin primality test.
http://nickle.org/examples/miller-rabin.5c used as reference
implementation.
2023-03-28 10:56:38 +00:00
..
common test(ext/node): more node compat tests (#17827) 2023-02-20 16:35:04 +01:00
fixtures test(ext/node): more node compat tests (#17827) 2023-02-20 16:35:04 +01:00
internet chore(tools): restore node compat test setup script (#18290) 2023-03-21 22:38:07 +09:00
parallel feat(ext/node): add crypto.checkPrime API (#18465) 2023-03-28 10:56:38 +00:00
pseudo-tty test(ext/node): more node compat tests (#17827) 2023-02-20 16:35:04 +01:00
pummel chore(tools): restore node compat test setup script (#18290) 2023-03-21 22:38:07 +09:00
sequential test(ext/node): more node compat tests (#17827) 2023-02-20 16:35:04 +01:00