mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Forbid volatile key identifiers for non volatile keys
Volatile key identifiers in the vendor range are reserved to volatile keys thus don't allow them for persistent keys when creating a key. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -1792,7 +1792,7 @@ static psa_status_t psa_validate_key_attributes(
|
||||
{
|
||||
status = psa_validate_key_id(
|
||||
psa_get_key_id( attributes ),
|
||||
psa_key_lifetime_is_external( lifetime ) );
|
||||
psa_key_lifetime_is_external( lifetime ), 0 );
|
||||
|
||||
if( status != PSA_SUCCESS )
|
||||
return( status );
|
||||
|
||||
Reference in New Issue
Block a user