Lines Matching refs:policy_alg
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()
828 if( PSA_SUCCESS != psa_mac_key_can_do( policy_alg, key_type ) ) in psa_key_algorithm_permits()
844 if( PSA_MAC_TRUNCATED_LENGTH( policy_alg ) == 0 ) in psa_key_algorithm_permits()
850 PSA_MAC_TRUNCATED_LENGTH( policy_alg ) == default_output_length ) in psa_key_algorithm_permits()
858 if( ( policy_alg & PSA_ALG_MAC_AT_LEAST_THIS_LENGTH_FLAG ) != 0 ) in psa_key_algorithm_permits()
860 return( PSA_MAC_TRUNCATED_LENGTH( policy_alg ) <= in psa_key_algorithm_permits()
867 if( PSA_ALG_IS_RAW_KEY_AGREEMENT( policy_alg ) && in psa_key_algorithm_permits()
871 policy_alg ); in psa_key_algorithm_permits()