opnsense-src/usr.bin/factor
Enji Cooper dcf5d5603b Reduce ifdef soup by adding pre-3.0 compat support
This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under the covers, `BN_is_prime_ex`.

The `nchecks` parameter value is maintained, even though it has no
noticable behavior change, given that the documentation clearly states
that at least 64 or 128 rounds are executed on the backend, depending on
how many bits there are in the given number being factored out.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D40305
2023-05-27 17:05:39 -07:00
..
tests Add simple factor/primes regression tests 2023-05-27 11:11:44 -07:00
factor.6 Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
factor.c Reduce ifdef soup by adding pre-3.0 compat support 2023-05-27 17:05:39 -07:00
Makefile factor: support OpenSSL 3 2023-05-27 11:11:44 -07:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00