Basic interface for key policies

Get/set the policy of a key slot.

Opaque structure for key policies and field access functions.
This commit is contained in:
Gilles Peskine 2018-03-03 21:30:44 +01:00 committed by itayzafrir
parent 92b3073e36
commit 7698bcf338
2 changed files with 82 additions and 0 deletions

View file

@ -118,4 +118,10 @@ struct psa_aead_operation_s
} ctx;
};
struct psa_key_policy_s
{
psa_key_usage_t usage;
psa_algorithm_t alg;
};
#endif /* PSA_CRYPTO_STRUCT_H */