ecdh_cms_encrypt: simplify setting the KDF type
authortb <tb@openbsd.org>
Wed, 17 Apr 2024 13:56:36 +0000 (13:56 +0000)
committertb <tb@openbsd.org>
Wed, 17 Apr 2024 13:56:36 +0000 (13:56 +0000)
commitde597bf0ee616d52313fe4be4d0b034c1dc93c01
treec58cdd817129991e45576252228320910c5e74d9
parent4846d4e7e646caf37e4b58ca14ae58d5ce9e4ab9
ecdh_cms_encrypt: simplify setting the KDF type

It is much simpler to avoid the key_type variable altogether and inline
its use. Also it makes no sense to have 15 unrelated lines between the
getting of the kdf type, checking its content, and then actually setting
it to EVP_PKEY_ECDH_KDF_X9_63.

ok jsing
lib/libcrypto/ec/ec_ameth.c