commit | c4e1dcf006318c6c5f6d671c703bae4a65e188ae | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Fri Apr 23 18:59:23 2021 +0100 |
committer | Paul Elliott <paul.elliott@arm.com> | Fri May 14 19:03:26 2021 +0100 |
tree | 5a0627fc0d664e6f774ba963459a4a8396f64ae1 | |
parent | 811d8d462fed3892b11a095438d4993dc7168cd8 [diff] |
Fix incorrect PSA key usage Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 6598cf4..a6d0cdb 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -3227,7 +3227,7 @@ 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 ) {