[openssl/openssl] 379e78: 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-4.0/[email protected]>
  Branch: refs/heads/openssl-4.0
  Home:   https://github.com/openssl/openssl
  Commit: 379e78905fc3b92fcbd2beb66ed0086a4f2faaaa
      https://github.com/openssl/openssl/commit/379e78905fc3b92fcbd2beb66ed0086a4f2faaaa
  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 13:28:58 2026
(Merged from https://github.com/openssl/openssl/pull/30938)


  Commit: b30b78bea9ebf866c851ffa5bda149eb9491a143
      https://github.com/openssl/openssl/commit/b30b78bea9ebf866c851ffa5bda149eb9491a143
  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 13:29:08 2026
(Merged from https://github.com/openssl/openssl/pull/30938)


Compare: https://github.com/openssl/openssl/compare/378dd47e95ca...b30b78bea9eb

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-4.0/378dd4-b30b78%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.