Fixes for mbedtls 3.6
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -215,7 +215,8 @@ int verify_key(const uint8_t *appId, const uint8_t *keyHandle, mbedtls_ecdsa_con
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
uint8_t hmac[32], d[32];
|
uint8_t hmac[32], d[32];
|
||||||
int ret = mbedtls_ecp_write_key(key, d, sizeof(d));
|
size_t olen = 0;
|
||||||
|
int ret = mbedtls_ecp_write_key_ext(key, &olen, d, sizeof(d));
|
||||||
if (key == NULL) {
|
if (key == NULL) {
|
||||||
mbedtls_ecdsa_free(&ctx);
|
mbedtls_ecdsa_free(&ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user