[openssl/openssl] c3a30b: Fix data type of SM2 EC_PUB_X/Y params

"'openssl-machine' via openssl-commits" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.5/[email protected]>
  Branch: refs/heads/openssl-3.5
  Home:   https://github.com/openssl/openssl
  Commit: c3a30b9594fedde8829144d68ed5fac3385daa9f
      https://github.com/openssl/openssl/commit/c3a30b9594fedde8829144d68ed5fac3385daa9f
  Author: Viktor Dukhovni <[email protected]>
  Date:   2026-08-08 (Sat, 08 Aug 2026)

  Changed paths:
    M providers/implementations/keymgmt/ec_kmgmt.c

  Log Message:
  -----------
  Fix data type of SM2 EC_PUB_X/Y params

The provider's gettable-params list advertised types that didn't match
what the getter implementation supported, so fetching either coordinate
tripped "incompatible type".  Nothing in-tree was asking; the follow-up
commit adds a test that detects the problem.

Reviewed-by: Tim Hudson <[email protected]>
Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Nikola Pajkovsky <[email protected]>
MergeDate: Sat Aug  8 14:25:57 2026
(Merged from https://github.com/openssl/openssl/pull/30938)


  Commit: 174d17940fc081fe6deafb1e6f4896faf13bac4e
      https://github.com/openssl/openssl/commit/174d17940fc081fe6deafb1e6f4896faf13bac4e
  Author: Viktor Dukhovni <[email protected]>
  Date:   2026-08-08 (Sat, 08 Aug 2026)

  Changed paths:
    M test/evp_extra_test2.c

  Log Message:
  -----------
  Expand and refactor test_evp_extra2

The "expand" part adds a algorithm-independent probe that walks every
gettable OSSL_PARAM of an EVP_PKEY in two passes -- first a size query,
then a real fetch.  This is exercised for each algorithm.  In the SM2
case it catches the gettable-params/getter type mismatch fixed in the
preceding commit: reverting that commit trips the probe for SM2.

The "refactor" part replaces the per-algorithm test code with a single
PKEY_TEST_SPEC table of (name, optional prefab DER, optional keygen
params), driven through pkey_from_spec().  The key-selection and
gettable tests no longer involve any algorithm-specific code.

Reviewed-by: Tim Hudson <[email protected]>
Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Nikola Pajkovsky <[email protected]>
MergeDate: Sat Aug  8 14:26:04 2026
(Merged from https://github.com/openssl/openssl/pull/30938)


Compare: https://github.com/openssl/openssl/compare/f10e9176e6ac...174d17940fc0

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/openssl-3.5/f10e91-174d17%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.