]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Build bootstrapping key DER encoding using custom routine
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 18 Nov 2017 10:19:43 +0000 (12:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 18 Nov 2017 15:50:02 +0000 (17:50 +0200)
commit746c1792ac285a67431cfa5e0c3b10ed3b806b13
tree1f90dae1dc8dd69a721b2de8147168e15872caff
parentf2d27ef94c06848cc8aa6e3589003538934db49b
DPP: Build bootstrapping key DER encoding using custom routine

While the OpenSSL version of i2d_EC_PUBKEY() seemed to be able to use
the POINT_CONVERSION_COMPRESSED setting on the EC key, that did not seem
to work with BoringSSL. Since this is not exactly robust design, replace
use of i2d_EC_PUBKEY() with a custom routine that enforces the DPP rules
on SubjectPublicKeyInfo (compressed format of the public key,
ecPublicKey OID, parameters present and indicating the curve by OID).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/dpp.c