History log of /openbsd-current/regress/lib/libcrypto/bn/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.38 09-Apr-2024 jsing

Add initial regress for BN_set_bit(), BN_clear_bit() and BN_mask_bits().


Revision tags: OPENBSD_7_5_BASE
# 1.37 19-Oct-2023 tb

The bn_mod_exp test is no longer an expected failure


# 1.36 19-Oct-2023 tb

Add test case checking aliasing of the result with other arguments

These are expected failures for BN_mod_exp_simple() and the internal
BN_mod_exp_recp(), which will be fixed shortly.


Revision tags: OPENBSD_7_4_BASE
# 1.35 03-Aug-2023 tb

Retire the bn_rand_interval() test

This test was never particularly useful. An upcoming API change for
the internal bn_rand_interval() API would require some adjustments.
It's not worth it.


# 1.34 06-Jul-2023 tb

Add regress coverage for bn_printf

This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.


# 1.33 03-Jun-2023 tb

Add regress coverage for BN_mod_inverse()

This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.37 19-Oct-2023 tb

The bn_mod_exp test is no longer an expected failure


# 1.36 19-Oct-2023 tb

Add test case checking aliasing of the result with other arguments

These are expected failures for BN_mod_exp_simple() and the internal
BN_mod_exp_recp(), which will be fixed shortly.


Revision tags: OPENBSD_7_4_BASE
# 1.35 03-Aug-2023 tb

Retire the bn_rand_interval() test

This test was never particularly useful. An upcoming API change for
the internal bn_rand_interval() API would require some adjustments.
It's not worth it.


# 1.34 06-Jul-2023 tb

Add regress coverage for bn_printf

This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.


# 1.33 03-Jun-2023 tb

Add regress coverage for BN_mod_inverse()

This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.35 03-Aug-2023 tb

Retire the bn_rand_interval() test

This test was never particularly useful. An upcoming API change for
the internal bn_rand_interval() API would require some adjustments.
It's not worth it.


# 1.34 06-Jul-2023 tb

Add regress coverage for bn_printf

This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.


# 1.33 03-Jun-2023 tb

Add regress coverage for BN_mod_inverse()

This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.34 06-Jul-2023 tb

Add regress coverage for bn_printf

This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.


# 1.33 03-Jun-2023 tb

Add regress coverage for BN_mod_inverse()

This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.33 03-Jun-2023 tb

Add regress coverage for BN_mod_inverse()

This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.32 22-Apr-2023 jsing

Provide initial regress for BN_{asc,dec,hex}2bn()/BN_bn2{dec,hex}()


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.31 17-Apr-2023 tb

Allow overriding the bc implementation used in run-bc

While base bc is great, it uses libcrypto's BIGNUM implementation.
This implies that the independent verification of the bn_test isn't
as independent as it should be.

With this commit, run-bc picks up bn-gh if it is installed. This appears
to work on amd64, arm64 and sparc64 (where gbc is busted). I will send
PRs to the regress maintainers once I will have tested this a bit more
thoroughly. Committing this early since I juggle way too many diffs
already.


# 1.30 17-Apr-2023 tb

Fix typo


# 1.29 10-Apr-2023 jsing

Provide benchmarks for BN_copy()


# 1.28 10-Apr-2023 tb

bn_to_string no longer needs to be linked statically


# 1.27 03-Apr-2023 tb

Link bn_gcd test to regress


# 1.26 26-Mar-2023 tb

Unhook bn_mod_exp2_mont test


# 1.25 26-Mar-2023 tb

bn_primes: there is no need to link this statically. It can pull the
primes table in directly.


Revision tags: OPENBSD_7_3_BASE
# 1.24 18-Mar-2023 tb

Rename bn_mod_exp_zero to the more appropriate bn_mod_exp


# 1.23 18-Mar-2023 tb

Retire the bn_mod_exp test.

Its is fully covered by bn_mod_exp_zero now.


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.22 11-Mar-2023 jsing

Add regress coverage for BN_{add,sub,mul,div,mod}_word().

This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and
BN_get_word().

Two of these tests are currently failing and will be fixed shortly.


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.21 31-Jan-2023 jsing

Add bn/arch/${MACHINE_CPU} to the include path.

This will be needed once headers pull in bn_arch.h.


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.20 29-Jan-2023 jsing

Rename bn_mul.c regress to bn_mul_div.c.


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.19 21-Jan-2023 jsing

Provide basic benchmarks for BN_mul() and BN_sqr().


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.18 17-Dec-2022 tb

Move benchmark target up a bit and mark it phony


# 1.17 17-Dec-2022 jsing

Provide regress coverage for BN shift functions.

Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.16 09-Dec-2022 tb

bn/Makefile: tidy up and simplify


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.15 02-Dec-2022 tb

Link new bn_mod_exp_zero test to build


# 1.14 02-Dec-2022 tb

libcrypto/bn: switch back to manual regress targets

The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.


# 1.13 02-Dec-2022 tb

Use the default targets from bsd.regress.mk as far as possible


# 1.12 01-Dec-2022 tb

Fix typo, move one .PHONY target nearer to the target itself


# 1.11 01-Dec-2022 tb

zap extra blank line


# 1.10 01-Dec-2022 tb

Check that the bn_isqrt -C output isn't changed

bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.


# 1.9 01-Dec-2022 tb

regress/libcrypto: merge exp/ into bn/

Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.

Commit stolen from jsing


# 1.8 01-Dec-2022 tb

Flatten structure of libcrypto/bn tests

The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.

Discussed with jsing


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.7 30-Nov-2022 jsing

Add regress coverage for BN_cmp()/BN_ucmp().

Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.6 06-Nov-2018 tb

link rand/ to build


Revision tags: OPENBSD_6_4_BASE
# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


# 1.5 10-Jul-2018 tb

+addsub


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.4 20-Jun-2014 miod

Simple regress test for the amd64 bn_mul_mont bug found by Joyent
( https://github.com/joyent/node/issues/7704 ), about to be fixed in
libcrypto.


# 1.3 20-Jun-2014 miod

Move the crypto/bn regression test one directory deeper in preparation for
it getting siblings.


# 1.2 01-Jun-2014 miod

Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.


# 1.1 15-Apr-2014 miod

branches: 1.1.1;
Initial revision