psa_validate_key_location() function
Validate a key's location. This function checks whether the key's attributes point to a location that is known to the PSA Core, and returns the driver function table if the key is to be found in an external location.
Arguments
lifetime
The key lifetime attribute.
p_drv
On success, when a key is located in external storage, returns a pointer to the driver table associated with the key's storage location.
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_INVALID_ARGUMENT \emptydescription
![]()
status = psa_validate_key_location(lifetime, p_drv);
psa_validate_key_location() is called by 1 function and calls 1 function:
![]()
psa_validate_key_location()
psa_validate_key_location():
![]()
psa_validate_key_location()