summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Feed the bntest output to bc(1). This checks the result of the bigbluhm2019-09-052-13/+16
| | | | | | num calculations and avoids lots of ugly output to stdout. Remove fflush(3) of stderr, it is unbuffered anyway. with Moritz Buhl
* Add a test for the bn_to_string() function introduced in v3_utl.c r1.32.tb2019-04-132-6/+133
|
* fix a leak pointed out by Ben L (bobsayshi () live ! co ! uk)tb2018-11-101-4/+8
|
* better failure printing, add more checkstb2018-11-061-9/+35
|
* link rand/ to buildtb2018-11-061-2/+4
|
* add a regression test for bn_rand_interval()tb2018-11-062-0/+98
|
* avoid using argv[0] for printing to stderrtb2018-07-231-2/+2
|
* Add missing $OpenBSD$ markers.tb2018-07-171-1/+1
|
* Replace getprogname() to argv[0] in bnaddsubinoguchi2018-07-171-3/+2
| | | | ok tb@
* +addsubtb2018-07-101-1/+2
|
* Add simple regression tests for BN_{,u}{add,sub}(3). With input from jcatb2018-07-102-0/+248
|
* fix resource leaks, ok @guentherbcook2017-08-121-3/+7
|
* Check return value of every BN_* functions in bntestinoguchi2017-02-231-393/+426
| | | | | | | - add macro CHECK_GOTO - unify function return code to rc - add err: label for error goto ok bcook@
* Remove unused variable in C source to make the test compile and pass.bluhm2017-02-071-1/+0
|
* LibreSSL : regress for carry bug in mulx4x_mont and sqr8x_montinoguchi2017-01-311-1/+78
| | | | | | | | | | | | This regress bntest.c patch is originally from master branch of OpenSSL. - dca2e0e test/bntest.c: regression test for CVE-2016-7055. - 3e7a496 test/bntest.c: regression test for carry bug in bn_sqr8x_internal. These tests were added for these commit. - 2fac86d bn/asm/x86_64-mont.pl: fix for CVE-2016-7055 (Low severity). - 3f4bcf5 bn/asm/x86_64-mont5.pl: fix carry bug in bn_sqr8x_internal. ok beck@
* Make explicit _ct and _nonct versions of bn_mod_exp funcitons thatbeck2017-01-213-4/+85
| | | | | | | | | | | | matter for constant time, and make the public interface only used external to the library. This moves us to a model where the important things are constant time versions unless you ask for them not to be, rather than the opposite. I'll continue with this method by method. Add regress tests for same. ok jsing@
* Update libcrypto regress to handle header and non-exported symbol changes.jsing2016-12-212-2/+6
|
* import new BN tests from OpenSSLbcook2016-09-031-92/+250
| | | | | | | New tests that various BIGNUM methods behave correctly on zero/even inputs. from OpenSSL ok beck@
* remove extra assignment of s from 1.11, fix regression testbcook2016-07-051-2/+1
|
* On systems where we do not have BN_ULLONG defined (most 64-bit systems),bcook2016-07-051-4/+24
| | | | | | | | | | | | | | BN_mod_word() can return incorrect results if the supplied modulus is too big, so we need to fall back to BN_div_word. Now that BN_mod_word may fail, handle errors properly update the man page. Thanks to Brian Smith for pointing out these fixes from BoringSSL: https://boringssl.googlesource.com/boringssl/+/67cb49d045f04973ddba0f92fe8a8ad483c7da89 https://boringssl.googlesource.com/boringssl/+/44bedc348d9491e63c7ed1438db100a4b8a830be ok beck@
* check return value for BN_hex2bn in regression testsbcook2016-03-131-4/+10
|
* remove mysterious, decorative comment blockletsbcook2015-07-181-21/+21
|
* Explicitly mark ignored BN_* return vals in tests.bcook2015-07-181-6/+6
| | | | | The tests will fail all the same. Fixes Coverity 78811 21659 21658 21657. Discussed with beck@
* Fix CVE-2014-3570: properly calculate the square of a BIGNUM value.bcook2015-02-251-23/+66
| | | | | | | | | | | See https://www.openssl.org/news/secadv_20150108.txt for a more detailed discussion. Original OpenSSL patch here: https://github.com/openssl/openssl/commit/a7a44ba55cb4f884c6bc9ceac90072dea38e66d0 The regression test is modified a little for KNF. ok miod@
* BN_free() has its own NULL check.jsing2015-02-191-14/+7
|
* KNF.jsing2015-02-191-766/+834
|
* Fix various memory leaks by not exiting so abruptly from failed tests.miod2015-02-151-579/+507
|
* Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes() (mostjsing2014-10-221-3/+2
| | | | with unchecked return values).
* None of these need <openssl/rand.h>jsing2014-10-221-1/+0
|
* Another regress test for OpenSSL PR #3397 (Joyent 7704), from agl via OpenSSLmiod2014-07-111-0/+57
| | | | RT.
* Include -DLIBRESSL_INTERNAL in regress makefiles.jsing2014-07-082-4/+4
| | | | ok miod@
* Simple regress test for the amd64 bn_mul_mont bug found by Joyentmiod2014-06-203-2/+86
| | | | | ( https://github.com/joyent/node/issues/7704 ), about to be fixed in libcrypto.
* Move the crypto/bn regression test one directory deeper in preparation formiod2014-06-203-7/+15
| | | | it getting siblings.
* Build these tests with WARNINGS=Yes and -Werror, and do the necessarymiod2014-06-011-1/+3
| | | | fixes to keep building.
* Import the OpenSSL libcrypto tests in a form suitable for our rergressmiod2014-04-152-0/+2007
infrastructure. The following tests have not been imported, for their code lacks a licence: asn1, rsa, sha256, sha512, wp.