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>
This commit is contained in:
parent
e9f8f81a82
commit
2086ae46b3
4 changed files with 98 additions and 90 deletions
|
@ -214,7 +214,8 @@ def test_dpp_qr_code_keygen_fail(dev, apdev):
|
|||
"""DPP QR Code and keygen failure"""
|
||||
check_dpp_capab(dev[0])
|
||||
|
||||
with alloc_fail(dev[0], 1, "dpp_bootstrap_key_der;dpp_keygen"):
|
||||
with alloc_fail(dev[0], 1,
|
||||
"crypto_ec_key_get_subject_public_key;dpp_keygen"):
|
||||
if "FAIL" not in dev[0].request("DPP_BOOTSTRAP_GEN type=qrcode"):
|
||||
raise Exception("Failure not reported")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue