[openssl/openssl] b5db23: ec_kmgmt.c: Do not crash when getting OSSL_PKEY_PA...

Tomáš Mráz noreply at github.com
Thu Aug 18 08:23:03 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: b5db237def7e22ccea1a540ec777045b3ce4600e
      https://github.com/openssl/openssl/commit/b5db237def7e22ccea1a540ec777045b3ce4600e
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

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

  Log Message:
  -----------
  ec_kmgmt.c: Do not crash when getting OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY

If the public key is not set on the key, return error instead of crash.

Fixes #18495

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18902)


  Commit: 3a1596f4e3d710c163279a20e6b844d371886e73
      https://github.com/openssl/openssl/commit/3a1596f4e3d710c163279a20e6b844d371886e73
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M test/evp_extra_test.c

  Log Message:
  -----------
  Add testcases for EVP_PKEY_get1_encoded_public_key

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18902)


  Commit: 58135cb3c020805354ecc869aca040934d1299c8
      https://github.com/openssl/openssl/commit/58135cb3c020805354ecc869aca040934d1299c8
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M doc/man3/EVP_PKEY_fromdata.pod
    M doc/man7/EVP_PKEY-EC.pod

  Log Message:
  -----------
  Clarify documentation in regards to EC key parameters

Also clarify that EVP_PKEY_fromdata ignores parameters that
are unknown or incorrect for given selection.

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18902)


Compare: https://github.com/openssl/openssl/compare/2c05607cd91f...58135cb3c020


More information about the openssl-commits mailing list