New usage flag PSA_KEY_USAGE_COPY

Document the new flag and allow its use.
This commit is contained in:
Gilles Peskine 2019-05-14 14:24:28 +02:00
parent 4318dfc8ec
commit 8e0206aa26
3 changed files with 26 additions and 0 deletions

View file

@ -1344,6 +1344,7 @@ static psa_status_t psa_set_key_policy_internal(
const psa_key_policy_t *policy )
{
if( ( policy->usage & ~( PSA_KEY_USAGE_EXPORT |
PSA_KEY_USAGE_COPY |
PSA_KEY_USAGE_ENCRYPT |
PSA_KEY_USAGE_DECRYPT |
PSA_KEY_USAGE_SIGN |