<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/test/ec_internal_test.c, branch dependabot/github_actions/actions/setup-python-7</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2025-12-09T07:28:19Z</updated>
<entry>
<title>4.0-POST-CLANG-FORMAT-WEBKIT</title>
<updated>2025-12-09T07:28:19Z</updated>
<author>
<name>Bob Beck</name>
<email>beck@openssl.org</email>
</author>
<published>2025-12-09T07:08:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=2fab90bb5e1937f1c2125eab144f7f6c39e70087'/>
<id>urn:sha1:2fab90bb5e1937f1c2125eab144f7f6c39e70087</id>
<content type='text'>
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/29242)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2025-09-02T13:05:45Z</updated>
<author>
<name>openssl-machine</name>
<email>openssl-machine@openssl.org</email>
</author>
<published>2025-09-02T13:05:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e66332418f84144478df43df91cf4cedf412fc85'/>
<id>urn:sha1:e66332418f84144478df43df91cf4cedf412fc85</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>test: use array memory (re)allocation routines</title>
<updated>2025-08-08T16:22:10Z</updated>
<author>
<name>Eugene Syromiatnikov</name>
<email>esyr@openssl.org</email>
</author>
<published>2025-07-17T13:19:56Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=5fab189ddd042643f1d148dd9e704d3b1154d0da'/>
<id>urn:sha1:5fab189ddd042643f1d148dd9e704d3b1154d0da</id>
<content type='text'>
Signed-off-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;

Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/28059)
</content>
</entry>
<entry>
<title>test: Silence warnings on Win64 builds</title>
<updated>2025-07-02T15:26:26Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2025-06-18T09:59:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=a3af1c036cd25da58017d59a375f7de8ccbd9fd8'/>
<id>urn:sha1:a3af1c036cd25da58017d59a375f7de8ccbd9fd8</id>
<content type='text'>
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/27806)
</content>
</entry>
<entry>
<title>Harden BN_GF2m_poly2arr against misuse.</title>
<updated>2024-10-16T07:21:33Z</updated>
<author>
<name>Viktor Dukhovni</name>
<email>viktor@openssl.org</email>
</author>
<published>2024-09-18T15:02:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=8e008cb8b23ec7dc75c45a66eeed09c815b11cd2'/>
<id>urn:sha1:8e008cb8b23ec7dc75c45a66eeed09c815b11cd2</id>
<content type='text'>
The BN_GF2m_poly2arr() function converts characteristic-2 field
(GF_{2^m}) Galois polynomials from a representation as a BIGNUM bitmask,
to a compact array with just the exponents of the non-zero terms.

These polynomials are then used in BN_GF2m_mod_arr() to perform modular
reduction.  A precondition of calling BN_GF2m_mod_arr() is that the
polynomial must have a non-zero constant term (i.e. the array has `0` as
its final element).

Internally, callers of BN_GF2m_poly2arr() did not verify that
precondition, and binary EC curve parameters with an invalid polynomial
could lead to out of bounds memory reads and writes in BN_GF2m_mod_arr().

The precondition is always true for polynomials that arise from the
standard form of EC parameters for characteristic-two fields (X9.62).
See the "Finite Field Identification" section of:

    https://www.itu.int/ITU-T/formal-language/itu-t/x/x894/2018-cor1/ANSI-X9-62.html

The OpenSSL GF(2^m) code supports only the trinomial and pentanomial
basis X9.62 forms.

This commit updates BN_GF2m_poly2arr() to return `0` (failure) when
the constant term is zero (i.e. the input bitmask BIGNUM is not odd).

Additionally, the return value is made unambiguous when there is not
enough space to also pad the array with a final `-1` sentinel value.
The return value is now always the number of elements (including the
final `-1`) that would be filled when the output array is sufficiently
large.  Previously the same count was returned both when the array has
just enough room for the final `-1` and when it had only enough space
for non-sentinel values.

Finally, BN_GF2m_poly2arr() is updated to reject polynomials whose
degree exceeds `OPENSSL_ECC_MAX_FIELD_BITS`, this guards against
CPU exhausition attacks via excessively large inputs.

The above issues do not arise in processing X.509 certificates.  These
generally have EC keys from "named curves", and RFC5840 (Section 2.1.1)
disallows explicit EC parameters.  The TLS code in OpenSSL enforces this
constraint only after the certificate is decoded, but, even if explicit
parameters are specified, they are in X9.62 form, which cannot represent
problem values as noted above.

Initially reported as oss-fuzz issue 71623.

A closely related issue was earlier reported in
&lt;https://github.com/openssl/openssl/issues/19826&gt;.

Severity: Low, CVE-2024-9143

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Bernd Edlinger &lt;bernd.edlinger@hotmail.de&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/25639)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2024-09-05T07:35:49Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2024-09-05T07:35:49Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=7ed6de997f62466271ef7ff6016026e1fdc76963'/>
<id>urn:sha1:7ed6de997f62466271ef7ff6016026e1fdc76963</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>Allow group methods to customize initialization for speed</title>
<updated>2024-06-05T09:11:52Z</updated>
<author>
<name>Watson Ladd</name>
<email>watsonbladd@gmail.com</email>
</author>
<published>2023-11-21T17:59:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=23b6ef4894679aa0278c93de29007d1e695856ee'/>
<id>urn:sha1:23b6ef4894679aa0278c93de29007d1e695856ee</id>
<content type='text'>
This commit also adds an implementation for P256 that avoids some
expensive initialization of Montgomery arithmetic structures in favor
of precomputation. Since ECC groups are not always cached by higher
layers this brings significant savings to TLS handshakes.

Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/22746)
</content>
</entry>
<entry>
<title>Add test for EC_KEY_set_private_key()</title>
<updated>2022-08-04T09:17:08Z</updated>
<author>
<name>Roberto Hueso Gomez</name>
<email>roberto@robertohueso.org</email>
</author>
<published>2022-08-01T00:08:47Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=d93f154d5a524e6ed71ff276447de7fe11d85949'/>
<id>urn:sha1:d93f154d5a524e6ed71ff276447de7fe11d85949</id>
<content type='text'>
This tests the behavior and API of the EC_KEY_set_private_key function.
It tests compliance with legacy features related to NULL private keys
too.

Reviewed-by: Nicola Tuveri &lt;nic.tuv@gmail.com&gt;
Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18942)
</content>
</entry>
<entry>
<title>Add tests for i2d_TYPE_fp and d2i_TYPE_fp</title>
<updated>2021-08-30T12:18:08Z</updated>
<author>
<name>Nicola Tuveri</name>
<email>nic.tuv@gmail.com</email>
</author>
<published>2020-07-15T22:57:09Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=ea1128e94e36fa9fa25278dc6b3f5b42d8735782'/>
<id>urn:sha1:ea1128e94e36fa9fa25278dc6b3f5b42d8735782</id>
<content type='text'>
These functions are part of the public API but we don't have tests
covering their usage.
They are actually implemented as macros and the absence of tests has
caused them to fall out-of-sync with the latest changes to ASN1 related
functions and cause compilation warnings.

@@ Note: This commit limits to ECPKParameters as a type.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/16355)
</content>
</entry>
<entry>
<title>Fix external symbols related to ec &amp; sm2 keys</title>
<updated>2021-02-26T00:53:01Z</updated>
<author>
<name>Shane Lontis</name>
<email>shane.lontis@oracle.com</email>
</author>
<published>2021-02-18T10:27:26Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=32ab57cbb4877ce7e6b4eb3f9b3cfbb0ff7cd10b'/>
<id>urn:sha1:32ab57cbb4877ce7e6b4eb3f9b3cfbb0ff7cd10b</id>
<content type='text'>
Partial fix for #12964

This adds ossl_ names for the following symbols:

ec_*, ecx_*, ecdh_*, ecdsa_*, sm2_*

Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14231)
</content>
</entry>
</feed>
