]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/evp_extra_test.c
provider: return error if buf too small when getting ec pubkey param
authorYi Li <yi1.li@intel.com>
Fri, 5 May 2023 03:30:05 +0000 (11:30 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 May 2023 08:32:06 +0000 (10:32 +0200)
commit91070877adb905f51eb4b19b730d42fc257bae13
tree2c05344c445d57646e4bf03d790c5674deaa88ac
parent9a271795f84eb5402ce1ecfbcfd21392ad1560d0
provider: return error if buf too small when getting ec pubkey param

Fixes #20889

There was an incorrect value passed to EC_POINT_point2oct() for the
buffer size of the param passed-in.

Added testcases.

Signed-off-by: Yi Li <yi1.li@intel.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20890)
providers/implementations/keymgmt/ec_kmgmt.c
test/evp_extra_test.c