mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-15 10:08:30 -04:00
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 );
|
return( PSA_ERROR_NOT_SUPPORTED );
|
||||||
|
|
||||||
status = psa_get_and_lock_key_slot_with_policy(
|
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 )
|
if( status != PSA_SUCCESS )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user