]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Replace dpp_bootstrap_key_der() with crypto_ec_key_get_subject_public_key()
authorCedric Izoard <cedric.izoard@ceva-dsp.com>
Fri, 29 Oct 2021 09:05:32 +0000 (11:05 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 3 Nov 2021 13:45:00 +0000 (15:45 +0200)
commit2086ae46b3cc26e0a81c8f68429b5b8875739d3f
tree4374fa3cd792eaa621d3376e142da9ced255451d
parente9f8f81a821e19673eb8c9b6877403815ed74696
DPP: Replace dpp_bootstrap_key_der() with crypto_ec_key_get_subject_public_key()

As BoringSSL version of i2d_PUBKEY() doesn't respect the
POINT_CONVERSION_COMPRESSED flag redefine a specific
crypto_ec_key_get_subject_public_key() version for BoringSSL based on
dpp_bootstrap_key_der().

The only other user of crypto_ec_key_get_subject_public_key() is SAE-PK
for which the public key should also be formatted using compressed
format.

Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
src/common/dpp.c
src/common/dpp_crypto.c
src/crypto/crypto_openssl.c
tests/hwsim/test_dpp.py