1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 22:09:02 -05:00
denoland-deno/ext/node/crypto
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
..
cipher.rs fix(ext/node): add aes-128-ecb algorithm support (#18412) 2023-03-25 15:42:07 +09:00
digest.rs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
mod.rs feat(ext/node): add crypto.checkPrime API (#18465) 2023-03-28 10:56:38 +00:00
primes.rs feat(ext/node): add crypto.checkPrime API (#18465) 2023-03-28 10:56:38 +00:00