summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/ecdh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove already disabled tests for elliptic curves of small ordertb2024-12-242-238/+2
|
* Disable regression tests for small builtin curvestb2024-11-242-2/+6
|
* ecc_cdh: plug leak of peer public keytb2023-07-161-1/+2
|
* ecdhtest: Drop unnecessary constant and unneeded includestb2023-07-161-10/+6
|
* ecdhtest: fix a couple bugs plus some cosmetic tweakstb2023-07-161-6/+6
|
* Rework the ecdhtesttb2023-07-151-260/+252
| | | | | | | | | Test keyshare for all built-in curves and simplify, especially printing on failure. Incorporate known answer tests from RFC 5114 and RFC 5903. All in all, this is a lot less code and a lot more test coverage and hopefully a little less eyebleed. Very loosely based on OpenSSL b438f0ed by Billy Brumley
* Fix return value check for ECDH_compute_key()tb2023-07-151-5/+5
| | | | | | ECDH_compute_key() usually returns -1 on error (but sometimes 0). This was also the case in OpenSSL when these tests were written. This will soon change. The check for <= 0 will still be correct.
* Add test coverage for cofactor ECDH using NIST test vectorstb2023-07-152-2/+2509
| | | | | | | | | Since all non-binary NIST curves have cofactor 1, this is in effect plain ECDH. Current regress coverage of ECDH is quite lacking on architectures where Go isn't available. This fixes that. Actual cofactor ECDH support may be added soon to libcrypto, at which point I will also add testcases with cofactor > 1.
* ecdhtest: Fix indenttb2023-05-201-2/+2
|
* ecdhtest: check malloc() return valuestb2023-05-161-4/+7
| | | | From Ilya Chipitsine
* Some more EC2M cleanuptb2023-04-261-34/+1
|
* Use BN_free() instead of BN_clear_free()tb2023-03-081-2/+2
|
* Minor cleanup after EC_POINT_get_affine_coordinates() unified thetb2021-12-291-23/+6
| | | | | | _GFp and _GF2m variants. CID 345155
* It's no longer necessary to link ecdhtest statically.tb2021-05-101-2/+2
|
* Adjust ecdhtest.c for affine_coordinates changetb2021-04-202-7/+7
|
* Add missing $OpenBSD$ markers.tb2018-07-171-1/+1
|
* Remove explicit NULL checks before *_free() calls and tidy some code.jsing2015-09-131-28/+22
|
* Use ECDH_size() and do some other clean up.jsing2015-09-131-7/+6
|
* Wrap long lines.jsing2015-09-131-16/+32
|
* style(9) grenade.jsing2015-09-131-153/+178
|
* None of these need <openssl/rand.h>jsing2014-10-221-1/+0
|
* remove use of internally-deprecated OPENSSL_malloc/freebcook2014-07-081-3/+2
| | | | ok jsing@
* Include -DLIBRESSL_INTERNAL in regress makefiles.jsing2014-07-081-2/+2
| | | | ok miod@
* Build these tests with WARNINGS=Yes and -Werror, and do the necessarymiod2014-06-011-1/+3
| | | | fixes to keep building.
* Add the RFC 7027 test vectors; from OpenSSL HEADmiod2014-05-241-0/+171
|
* remove OPENSSL_malloc and CRYPTO_malloc goo from the regress tests.beck2014-05-241-8/+4
| | | | ok miod@ jsing@ guenther@
* Import the OpenSSL libcrypto tests in a form suitable for our rergressmiod2014-04-152-0/+285
infrastructure. The following tests have not been imported, for their code lacks a licence: asn1, rsa, sha256, sha512, wp.