fix: migrate PSA SHA driver to be similar to parallel engine port

This commit is contained in:
Ashish Sharma
2025-12-19 11:06:41 +08:00
parent 646c9a994a
commit 5d5ba9d008
33 changed files with 761 additions and 246 deletions
+2 -2
View File
@@ -1720,8 +1720,8 @@ static int mbedtls_gen_keypair(uint8_t *public_key, uint8_t *private_key)
psa_reset_key_attributes(&key_attributes);
size_t olen = 0;
status = psa_export_public_key(key_id, public_key, 65, &olen);
if (status != PSA_SUCCESS || olen != 65) {
status = psa_export_public_key(key_id, public_key, BLE_PUB_KEY_LEN, &olen);
if (status != PSA_SUCCESS || olen != BLE_PUB_KEY_LEN) {
goto exit;
}