Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_extra.h70 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()
H A Dcrypto_struct.h271 psa_algorithm_t MBEDTLS_PRIVATE(alg2);
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_storage.c252 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()
H A Dpsa_crypto.c821 psa_algorithm_t alg2) in psa_key_policy_algorithm_intersection() argument
824 if (alg1 == alg2) { in psa_key_policy_algorithm_intersection()
830 PSA_ALG_IS_SIGN_HASH(alg2) && in psa_key_policy_algorithm_intersection()
831 (alg1 & ~PSA_ALG_HASH_MASK) == (alg2 & ~PSA_ALG_HASH_MASK)) { in psa_key_policy_algorithm_intersection()
833 return alg2; in psa_key_policy_algorithm_intersection()
835 if (PSA_ALG_SIGN_GET_HASH(alg2) == PSA_ALG_ANY_HASH) { in psa_key_policy_algorithm_intersection()
842 if (PSA_ALG_IS_AEAD(alg1) && PSA_ALG_IS_AEAD(alg2) && in psa_key_policy_algorithm_intersection()
844 PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg2, 0))) { in psa_key_policy_algorithm_intersection()
846 size_t alg2_len = PSA_ALG_AEAD_GET_TAG_LENGTH(alg2); in psa_key_policy_algorithm_intersection()
851 ((alg2 & PSA_ALG_AEAD_AT_LEAST_THIS_LENGTH_FLAG) != 0)) { in psa_key_policy_algorithm_intersection()
[all …]