]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Use a common helper function for ECDH operations
authorJouni Malinen <j@w1.fi>
Sun, 4 Aug 2019 09:10:20 +0000 (12:10 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 4 Aug 2019 09:10:20 +0000 (12:10 +0300)
commit29ef1c5ee4c1251aa3a70cb45af6888deba040f8
tree120b7d760cf567e239e52dc887a3efa106a3aaee
parent48e999e9a5934045f9dae5482bb0a80b0f599ceb
DPP: Use a common helper function for ECDH operations

This replaces the separately implemented ECDH operations with a single
helper function to avoid code duplication. In addition, this introduces
a workaround for strange OpenSSL behavior where the first
EVP_PKEY_derive(NULL) call to learn the size of the output shared secret
returns unexpectedly large buffer (72 octets when expected 32 octets for
group 19). It is not known what is causing this, but such behavior seems
to be showing up every now and then at least when running hwsim test
cases under UML and apparently mainly (only?) in the sigma_dut
controller cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/dpp.c