Add a regression test for bn_isqrt.c
authortb <tb@openbsd.org>
Mon, 25 Jul 2022 20:48:57 +0000 (20:48 +0000)
committertb <tb@openbsd.org>
Mon, 25 Jul 2022 20:48:57 +0000 (20:48 +0000)
commit75125590241deb2411cc5b6710e326abc2ba0c99
tree67de4b275c907842db89d6f0705cece7fcaf714a
parent9ba61043bbb3c1c5354cd29f6ffba92b19fffc3e
Add a regression test for bn_isqrt.c

This validates the tables used in bn_is_perfect_square() and checks that
for randomly generated numbers the isqrt() is what it is expected to be.
regress/lib/libcrypto/bn/general/Makefile
regress/lib/libcrypto/bn/general/bn_isqrt.c [new file with mode: 0644]