Searched refs:alg1 (Results 1 – 4 of 4) sorted by relevance
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_test_lib.c | 195 int key_opaque_alg_parse(const char *arg, const char **alg1, const char **alg2) in key_opaque_alg_parse() argument 203 *alg1 = arg; in key_opaque_alg_parse() 206 if (strcmp(*alg1, "rsa-sign-pkcs1") != 0 && in key_opaque_alg_parse() 207 strcmp(*alg1, "rsa-sign-pss") != 0 && in key_opaque_alg_parse() 208 strcmp(*alg1, "rsa-sign-pss-sha256") != 0 && in key_opaque_alg_parse() 209 strcmp(*alg1, "rsa-sign-pss-sha384") != 0 && in key_opaque_alg_parse() 210 strcmp(*alg1, "rsa-sign-pss-sha512") != 0 && in key_opaque_alg_parse() 211 strcmp(*alg1, "rsa-decrypt") != 0 && in key_opaque_alg_parse() 212 strcmp(*alg1, "ecdsa-sign") != 0 && in key_opaque_alg_parse() 213 strcmp(*alg1, "ecdh") != 0) { in key_opaque_alg_parse() [all …]
|
D | ssl_test_lib.h | 222 int key_opaque_alg_parse(const char *arg, const char **alg1, const char **alg2); 240 int key_opaque_set_alg_usage(const char *alg1, const char *alg2,
|
/mbedtls-3.5.0/library/ |
D | psa_crypto.c | 676 psa_algorithm_t alg1, in psa_key_policy_algorithm_intersection() argument 680 if (alg1 == alg2) { in psa_key_policy_algorithm_intersection() 681 return alg1; in psa_key_policy_algorithm_intersection() 685 if (PSA_ALG_IS_SIGN_HASH(alg1) && in psa_key_policy_algorithm_intersection() 687 (alg1 & ~PSA_ALG_HASH_MASK) == (alg2 & ~PSA_ALG_HASH_MASK)) { in psa_key_policy_algorithm_intersection() 688 if (PSA_ALG_SIGN_GET_HASH(alg1) == PSA_ALG_ANY_HASH) { in psa_key_policy_algorithm_intersection() 692 return alg1; in psa_key_policy_algorithm_intersection() 698 if (PSA_ALG_IS_AEAD(alg1) && PSA_ALG_IS_AEAD(alg2) && in psa_key_policy_algorithm_intersection() 699 (PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg1, 0) == in psa_key_policy_algorithm_intersection() 701 size_t alg1_len = PSA_ALG_AEAD_GET_TAG_LENGTH(alg1); in psa_key_policy_algorithm_intersection() [all …]
|
/mbedtls-3.5.0/tests/scripts/ |
D | generate_psa_tests.py | 682 alg1 = 0 #type: psa_storage.Exprable 685 alg1 = alg.expression 694 usage=usage_flags, alg=alg1, alg2=alg2,
|