Searched refs:policy_alg (Results 1 – 3 of 3) sorted by relevance
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_crypto_metadata.function | 338 psa_algorithm_t policy_alg = PSA_ALG_AT_LEAST_THIS_LENGTH_MAC( alg, n ); 339 mac_algorithm_core( policy_alg, classification_flags | ALG_IS_WILDCARD, 341 TEST_EQUAL( PSA_ALG_FULL_LENGTH_MAC( policy_alg ), alg ); 345 TEST_EQUAL( PSA_ALG_AT_LEAST_THIS_LENGTH_MAC( policy_alg, 1 ), 347 TEST_EQUAL( PSA_ALG_AT_LEAST_THIS_LENGTH_MAC( policy_alg, length - 1 ), 349 TEST_EQUAL( PSA_ALG_AT_LEAST_THIS_LENGTH_MAC( policy_alg, length ), 357 PSA_ALG_TRUNCATED_MAC( policy_alg, n ), 1), 360 PSA_ALG_TRUNCATED_MAC( policy_alg, n ), length - 1 ), 363 PSA_ALG_TRUNCATED_MAC( policy_alg, n ), length ), 465 psa_algorithm_t policy_alg = PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG( alg, n ); [all …]
|
D | test_suite_psa_crypto.function | 863 psa_algorithm_t policy_alg = policy_alg_arg; 874 psa_set_key_algorithm( &attributes, policy_alg ); 918 int policy_alg, 932 psa_set_key_algorithm( &attributes, policy_alg ); 943 if( policy_alg == exercise_alg && 951 if( policy_alg == exercise_alg && 966 int policy_alg, 991 psa_set_key_algorithm( &attributes, policy_alg ); 1034 int policy_alg, 1051 psa_set_key_algorithm( &attributes, policy_alg ); [all …]
|
/openthread-3.5.0/third_party/mbedtls/repo/library/ |
D | psa_crypto.c | 792 psa_algorithm_t policy_alg, in psa_key_algorithm_permits() argument 796 if( requested_alg == policy_alg ) in psa_key_algorithm_permits() 802 PSA_ALG_SIGN_GET_HASH( policy_alg ) == PSA_ALG_ANY_HASH ) in psa_key_algorithm_permits() 804 return( ( policy_alg & ~PSA_ALG_HASH_MASK ) == in psa_key_algorithm_permits() 810 if( PSA_ALG_IS_AEAD( policy_alg ) && in psa_key_algorithm_permits() 812 ( PSA_ALG_AEAD_WITH_SHORTENED_TAG( policy_alg, 0 ) == in psa_key_algorithm_permits() 814 ( ( policy_alg & PSA_ALG_AEAD_AT_LEAST_THIS_LENGTH_FLAG ) != 0 ) ) in psa_key_algorithm_permits() 816 return( PSA_ALG_AEAD_GET_TAG_LENGTH( policy_alg ) <= in psa_key_algorithm_permits() 821 if( PSA_ALG_IS_MAC( policy_alg ) && in psa_key_algorithm_permits() 823 ( PSA_ALG_FULL_LENGTH_MAC( policy_alg ) == in psa_key_algorithm_permits() [all …]
|