Searched refs:alg2 (Results 1 – 4 of 4) sorted by relevance
55 * \param alg2 A second algorithm that the key may be used70 psa_algorithm_t alg2) in psa_set_key_enrollment_algorithm() argument 72 attributes->MBEDTLS_PRIVATE(policy).MBEDTLS_PRIVATE(alg2) = alg2; in psa_set_key_enrollment_algorithm() 84 return attributes->MBEDTLS_PRIVATE(policy).MBEDTLS_PRIVATE(alg2); in psa_get_key_enrollment_algorithm()
271 psa_algorithm_t MBEDTLS_PRIVATE(alg2);
252 MBEDTLS_PUT_UINT32_LE(attr->policy.alg2, storage_format->policy, 2 * sizeof(uint32_t)); in psa_format_key_data_for_storage()312 attr->policy.alg2 = MBEDTLS_GET_UINT32_LE(storage_format->policy, 2 * sizeof(uint32_t)); in psa_parse_key_data_from_storage()
823 psa_algorithm_t alg2) in psa_key_policy_algorithm_intersection() 826 if (alg1 == alg2) { in psa_key_policy_algorithm_intersection() 832 PSA_ALG_IS_SIGN_HASH(alg2) && in psa_key_policy_algorithm_intersection() 833 (alg1 & ~PSA_ALG_HASH_MASK) == (alg2 & ~PSA_ALG_HASH_MASK)) { in psa_key_policy_algorithm_intersection() 835 return alg2; in psa_key_policy_algorithm_intersection() 837 if (PSA_ALG_SIGN_GET_HASH(alg2) == PSA_ALG_ANY_HASH) { in psa_key_policy_algorithm_intersection() 844 if (PSA_ALG_IS_AEAD(alg1) && PSA_ALG_IS_AEAD(alg2) && in psa_key_policy_algorithm_intersection() 846 PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg2, 0))) { in psa_key_policy_algorithm_intersection() 848 size_t alg2_len = PSA_ALG_AEAD_GET_TAG_LENGTH(alg2); in psa_key_policy_algorithm_intersection() 853 ((alg2 in psa_key_policy_algorithm_intersection() 821 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...]