wolfSSL: Fix ECDH set peer to use the index when importing point
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
parent
ffff7f7095
commit
2b01270c8a
1 changed files with 1 additions and 1 deletions
|
@ -1762,7 +1762,7 @@ struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
ret = wc_ecc_import_point_der(wpabuf_mhead(pubkey), 1 + 2 * key_len,
|
ret = wc_ecc_import_point_der(wpabuf_mhead(pubkey), 1 + 2 * key_len,
|
||||||
ecdh->ec->key.dp->id, point);
|
ecdh->ec->key.idx, point);
|
||||||
if (ret != MP_OKAY)
|
if (ret != MP_OKAY)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue