Fix incorrect PSA key usage
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
811d8d462f
commit
c4e1dcf006
@ -3227,7 +3227,7 @@ psa_status_t psa_aead_encrypt_setup( psa_aead_operation_t *operation,
|
||||
return( PSA_ERROR_NOT_SUPPORTED );
|
||||
|
||||
status = psa_get_and_lock_key_slot_with_policy(
|
||||
key, &slot, PSA_KEY_USAGE_DECRYPT, alg );
|
||||
key, &slot, PSA_KEY_USAGE_ENCRYPT, alg );
|
||||
|
||||
if( status != PSA_SUCCESS )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user