entropyxyz / crypto-primes

Random prime generation and primality testing library based on `crypto-bigint`.
https://docs.rs/crypto-primes
Apache License 2.0
17 stars 4 forks source link

Implement full improved Baillie-PSW test #21

Open fjarri opened 1 year ago

fjarri commented 1 year ago

This is a follow-up to #3. The same paper proposes an improved BPSW test (Section 6). The test consists of:

This can be made a separate preset.

Problems: