mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-09 03:39:54 +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,
|
key_size = PSA_EXPORT_KEY_OUTPUT_SIZE(private_key_type,
|
||||||
psa_get_key_bits(&private_key_attributes));
|
psa_get_key_bits(&private_key_attributes));
|
||||||
if (key_size == 0) {
|
if (key_size == 0) {
|
||||||
status = PSA_ERROR_INVALID_ARGUMENT;
|
status = PSA_ERROR_NOT_SUPPORTED;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user