mirror of
https://github.com/espressif/mbedtls.git
synced 2026-08-09 04:57:48 +00:00
Chane error code in psa_export_public_key_iop_setup() in case key size is 0
Signed-off-by: Waleed Elmelegy <[email protected]>
This commit is contained in:
@@ -1730,7 +1730,7 @@ psa_status_t psa_export_public_key_iop_setup(psa_export_public_key_iop_t *operat
|
||||
key_size = PSA_EXPORT_KEY_OUTPUT_SIZE(private_key_type,
|
||||
psa_get_key_bits(&private_key_attributes));
|
||||
if (key_size == 0) {
|
||||
status = PSA_ERROR_INVALID_ARGUMENT;
|
||||
status = PSA_ERROR_NOT_SUPPORTED;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user