Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto.c822 psa_algorithm_t alg1, in psa_key_policy_algorithm_intersection()
826 if (alg1 == alg2) { in psa_key_policy_algorithm_intersection()
827 return alg1; in psa_key_policy_algorithm_intersection()
831 if (PSA_ALG_IS_SIGN_HASH(alg1) && in psa_key_policy_algorithm_intersection()
833 (alg1 & ~PSA_ALG_HASH_MASK) == (alg2 & ~PSA_ALG_HASH_MASK)) { in psa_key_policy_algorithm_intersection()
834 if (PSA_ALG_SIGN_GET_HASH(alg1) == PSA_ALG_ANY_HASH) { in psa_key_policy_algorithm_intersection()
838 return alg1; in psa_key_policy_algorithm_intersection()
844 if (PSA_ALG_IS_AEAD(alg1) && PSA_ALG_IS_AEAD(alg2) && in psa_key_policy_algorithm_intersection()
845 (PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg1, 0) == in psa_key_policy_algorithm_intersection()
847 size_t alg1_len = PSA_ALG_AEAD_GET_TAG_LENGTH(alg1); in psa_key_policy_algorithm_intersection()
820 psa_key_policy_algorithm_intersection(psa_key_type_t key_type,psa_algorithm_t alg1,psa_algorithm_t alg2) psa_key_policy_algorithm_intersection() argument
[all...]