Add tests for BN_sqr() corner cases.
authorjsing <jsing@openbsd.org>
Wed, 21 Jun 2023 07:18:10 +0000 (07:18 +0000)
committerjsing <jsing@openbsd.org>
Wed, 21 Jun 2023 07:18:10 +0000 (07:18 +0000)
commitd1ac4eb253fca7bc79cbde208e085881b3264048
treee032ac72ca701dafdd36f7639eaf2c87240a26d6
parentda50f9d581c7921f15157441f5abbb6c6381891f
Add tests for BN_sqr() corner cases.

Test BN_sqr() with a newly allocated BN, a BN explicitly set to zero and
small values that fit in a single BN_ULONG.
regress/lib/libcrypto/bn/bn_mul_div.c