Searched refs:alg1 (Results 1 – 6 of 6) sorted by relevance
/external/mbedtls/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,
|
/external/openthread/third_party/mbedtls/repo/library/ |
D | psa_crypto.c | 690 psa_algorithm_t alg1, in psa_key_policy_algorithm_intersection() argument 694 if( alg1 == alg2 ) in psa_key_policy_algorithm_intersection() 695 return( alg1 ); in psa_key_policy_algorithm_intersection() 698 if( PSA_ALG_IS_SIGN_HASH( alg1 ) && in psa_key_policy_algorithm_intersection() 700 ( alg1 & ~PSA_ALG_HASH_MASK ) == ( alg2 & ~PSA_ALG_HASH_MASK ) ) in psa_key_policy_algorithm_intersection() 702 if( PSA_ALG_SIGN_GET_HASH( alg1 ) == PSA_ALG_ANY_HASH ) in psa_key_policy_algorithm_intersection() 705 return( alg1 ); in psa_key_policy_algorithm_intersection() 710 if( PSA_ALG_IS_AEAD( alg1 ) && PSA_ALG_IS_AEAD( alg2 ) && in psa_key_policy_algorithm_intersection() 711 ( PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg1, 0 ) == in psa_key_policy_algorithm_intersection() 714 size_t alg1_len = PSA_ALG_AEAD_GET_TAG_LENGTH( alg1 ); in psa_key_policy_algorithm_intersection() [all …]
|
/external/mbedtls/library/ |
D | psa_crypto.c | 620 psa_algorithm_t alg1, in psa_key_policy_algorithm_intersection() argument 624 if( alg1 == alg2 ) in psa_key_policy_algorithm_intersection() 625 return( alg1 ); in psa_key_policy_algorithm_intersection() 628 if( PSA_ALG_IS_SIGN_HASH( alg1 ) && in psa_key_policy_algorithm_intersection() 630 ( alg1 & ~PSA_ALG_HASH_MASK ) == ( alg2 & ~PSA_ALG_HASH_MASK ) ) in psa_key_policy_algorithm_intersection() 632 if( PSA_ALG_SIGN_GET_HASH( alg1 ) == PSA_ALG_ANY_HASH ) in psa_key_policy_algorithm_intersection() 635 return( alg1 ); in psa_key_policy_algorithm_intersection() 640 if( PSA_ALG_IS_AEAD( alg1 ) && PSA_ALG_IS_AEAD( alg2 ) && in psa_key_policy_algorithm_intersection() 641 ( PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg1, 0 ) == in psa_key_policy_algorithm_intersection() 644 size_t alg1_len = PSA_ALG_AEAD_GET_TAG_LENGTH( alg1 ); in psa_key_policy_algorithm_intersection() [all …]
|
/external/cronet/net/cert/pki/ |
D | verify_certificate_chain.cc | 146 absl::optional<SignatureAlgorithm> alg1 = ParseSignatureAlgorithm(alg1_tlv); in VerifySignatureAlgorithmsMatch() local 147 if (!alg1) { in VerifySignatureAlgorithmsMatch() 157 if (*alg1 == *alg2) { in VerifySignatureAlgorithmsMatch()
|
/external/mbedtls/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,
|