Home
last modified time | relevance | path

Searched refs:policy_alg (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto.c920 psa_algorithm_t policy_alg, in psa_key_algorithm_permits()
924 if (requested_alg == policy_alg) { in psa_key_algorithm_permits()
927 /* If policy_alg is a hash-and-sign with a wildcard for the hash, in psa_key_algorithm_permits()
929 * then requested_alg is compliant with policy_alg. */ in psa_key_algorithm_permits()
931 PSA_ALG_SIGN_GET_HASH(policy_alg) == PSA_ALG_ANY_HASH) { in psa_key_algorithm_permits()
932 return (policy_alg & ~PSA_ALG_HASH_MASK) == in psa_key_algorithm_permits()
935 /* If policy_alg is a wildcard AEAD algorithm of the same base as in psa_key_algorithm_permits()
938 if (PSA_ALG_IS_AEAD(policy_alg) && in psa_key_algorithm_permits()
940 (PSA_ALG_AEAD_WITH_SHORTENED_TAG(policy_alg, 0) == in psa_key_algorithm_permits()
942 ((policy_alg in psa_key_algorithm_permits()
918 psa_key_algorithm_permits(psa_key_type_t key_type,psa_algorithm_t policy_alg,psa_algorithm_t requested_alg) psa_key_algorithm_permits() argument
[all...]