Searched refs:alg1 (Results 1 – 4 of 4) sorted by relevance
/mbedtls-3.4.0/programs/ssl/ |
D | ssl_test_lib.c | 196 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 | 226 int key_opaque_alg_parse( const char *arg, const char **alg1, const char **alg2 ); 244 int key_opaque_set_alg_usage( const char *alg1, const char *alg2,
|
/mbedtls-3.4.0/library/ |
D | psa_crypto.c | 625 psa_algorithm_t alg1, in psa_key_policy_algorithm_intersection() argument 629 if( alg1 == alg2 ) in psa_key_policy_algorithm_intersection() 630 return( alg1 ); in psa_key_policy_algorithm_intersection() 633 if( PSA_ALG_IS_SIGN_HASH( alg1 ) && in psa_key_policy_algorithm_intersection() 635 ( alg1 & ~PSA_ALG_HASH_MASK ) == ( alg2 & ~PSA_ALG_HASH_MASK ) ) in psa_key_policy_algorithm_intersection() 637 if( PSA_ALG_SIGN_GET_HASH( alg1 ) == PSA_ALG_ANY_HASH ) in psa_key_policy_algorithm_intersection() 640 return( alg1 ); in psa_key_policy_algorithm_intersection() 645 if( PSA_ALG_IS_AEAD( alg1 ) && PSA_ALG_IS_AEAD( alg2 ) && in psa_key_policy_algorithm_intersection() 646 ( PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg1, 0 ) == in psa_key_policy_algorithm_intersection() 649 size_t alg1_len = PSA_ALG_AEAD_GET_TAG_LENGTH( alg1 ); in psa_key_policy_algorithm_intersection() [all …]
|
/mbedtls-3.4.0/tests/scripts/ |
D | generate_psa_tests.py | 680 alg1 = 0 #type: psa_storage.Exprable 683 alg1 = alg.expression 692 usage=usage_flags, alg=alg1, alg2=alg2,
|