Eno
0dadd6616a
Improve openssl ext to generate EC keys with custom EC parameters
...
This change extends supported parameter when generating EC keys.
Specifically following parameters are now supported: p, a, b, order,
generator, seed, cofactory, g_x, g_y, x, y and d.
Those parameters can be passed to ec field in openssl_pkey_new options.
It also fixes some issues openssl_pkey_get_details related to SM2
support.
Closes GH-9991
2023-07-06 15:51:50 +01:00
Jakub Zelenka
ce57221376
Fix GH-9064: PHP fails to build if openssl was built with no-ec
2022-11-25 12:49:12 +00:00
Remi Collet
03a4ccd912
use sha256 in openssl test suite
2022-06-01 11:46:47 +02:00
Jakub Zelenka
43f0141d74
Make OpenSSL tests less dependent on system config
...
It fixes dependencies on system config if running tests with OpenSSL 3.0
2021-09-12 20:30:02 +01:00
Nikita Popov
246698671f
Test calculation of EC public key from private key
2021-08-09 12:01:35 +02:00
Nikita Popov
39131219e8
Migrate more SKIPIF -> EXTENSIONS ( #7139 )
...
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00
Máté Kocsis
9f44eca6b6
Convert resources to objects in ext/openssl
...
Closes GH-5860
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2020-08-01 22:47:20 +02:00
Jakub Zelenka
5f349b728e
Merge branch 'PHP-7.2'
2018-06-21 16:50:45 +01:00
Jakub Zelenka
3c42f64e6e
Make code in openssl ext tests more consistent
...
Mainly use spaces for indent and fix some other CS issues. Also
drop checks for unsupported OpenSSL library versions.
2018-06-21 16:38:19 +01:00
Jim Zubov
897133fbda
Add openssl_pkey_derive
2018-05-09 19:37:01 +01:00
Nikita Popov
2497ae031b
Don't check for precise length in ecc.phpt
...
Again, this can be off by one.
2016-12-29 22:05:38 +01:00
Dmitry Stogov
f5dbba0d54
Revert "Skip new OpenSSL ECC tests on 32bit"
...
This reverts commit 0a4f89bc29 .
2016-06-29 11:43:31 +03:00
Jakub Zelenka
0a4f89bc29
Skip new OpenSSL ECC tests on 32bit
...
There has been reported that they fail on 32bit so
they will be skipped till the issue is investigated.
2016-06-28 20:39:31 +01:00
Dominic Luechinger
9688138d38
Adds initial support to generate and work with ECC public key pair
...
New features:
- openssl_get_curve_names => list ECC curve names
- generate a ECC public key pair
- generate an CSR with an ECC key
- export x,y,d params of ECC public/private key
Thanks to @bukka for the review and feedback
2016-06-26 16:15:25 +01:00