Lines Matching defs:usage
808 /** Calculate the intersection of two algorithm usage policies.
996 * The caller must test usage flags separately.
1066 policy->usage &= constraint->usage;
1075 * The key must have allow all the usage flags set in \p usage. If \p alg is
1094 psa_key_usage_t usage,
1106 /* Enforce that usage policy for the key slot contains all the flags
1107 * required by the usage parameter. There is one exception: public
1111 usage &= ~PSA_KEY_USAGE_EXPORT;
1114 if ((slot->attr.policy.usage & usage) != usage) {
1119 /* Enforce that the usage policy permits the requested algorithm. */
1160 psa_key_usage_t usage,
1164 usage, alg);
1614 /* Exporting a public key doesn't require a usage flag. */
1646 if ((policy->usage & ~(PSA_KEY_USAGE_EXPORT |
4254 psa_key_usage_t usage = (cipher_operation == MBEDTLS_ENCRYPT ?
4269 status = psa_get_and_lock_key_slot_with_policy(key, &slot, usage, alg);
4682 * recommend the usage of nonces of greater length than