mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-16 04:20:49 +00:00
Chane error code in psa_export_public_key_iop_setup() in case key size is 0
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
568d057b0a
commit
29f65a874f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user