Searched refs:curve_info (Results 1 – 10 of 10) sorted by relevance
/third_party/mbedtls/programs/test/ |
D | benchmark.c | 1067 const mbedtls_ecp_curve_info *curve_info; in main() local 1072 for( curve_info = curve_list; in main() 1073 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() 1074 curve_info++ ) in main() 1076 if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) ) in main() 1081 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in main() 1086 curve_info->name ); in main() 1088 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main() 1094 for( curve_info = curve_list; in main() 1095 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() [all …]
|
/third_party/mbedtls/programs/pkey/ |
D | gen_key.c | 200 const mbedtls_ecp_curve_info *curve_info; in main() local 221 curve_info = mbedtls_ecp_curve_list(); in main() 222 mbedtls_printf( " %s (default)\n", curve_info->name ); in main() 223 while( ( ++curve_info )->name != NULL ) in main() 224 mbedtls_printf( " %s\n", curve_info->name ); in main() 271 if( ( curve_info = mbedtls_ecp_curve_info_from_name( q ) ) == NULL ) in main() 273 opt.ec_curve = curve_info->grp_id; in main()
|
/third_party/mbedtls/library/ |
D | ssl_tls13_client.c | 156 const mbedtls_ecp_curve_info *curve_info; in ssl_tls13_write_named_group_list_ecdhe() local 157 curve_info = mbedtls_ecp_curve_info_from_tls_id( *group_list ); in ssl_tls13_write_named_group_list_ecdhe() 158 if( curve_info == NULL ) in ssl_tls13_write_named_group_list_ecdhe() 169 curve_info->name, *group_list ) ); in ssl_tls13_write_named_group_list_ecdhe() 287 const mbedtls_ecp_curve_info *curve_info = in ssl_tls13_generate_and_write_ecdh_key_exchange() local 290 if( curve_info == NULL ) in ssl_tls13_generate_and_write_ecdh_key_exchange() 293 MBEDTLS_SSL_DEBUG_MSG( 3, ( "offer curve %s", curve_info->name ) ); in ssl_tls13_generate_and_write_ecdh_key_exchange() 296 curve_info->grp_id ) ) != 0 ) in ssl_tls13_generate_and_write_ecdh_key_exchange() 331 const mbedtls_ecp_curve_info *curve_info; in ssl_tls13_get_default_group_id() local 332 curve_info = mbedtls_ecp_curve_info_from_tls_id( *group_list ); in ssl_tls13_get_default_group_id() [all …]
|
D | ecp.c | 424 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_grp_id_list() local 426 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_grp_id_list() 427 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list() 428 curve_info++ ) in mbedtls_ecp_grp_id_list() 430 ecp_supported_grp_id[i++] = curve_info->grp_id; in mbedtls_ecp_grp_id_list() 445 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_curve_info_from_grp_id() local 447 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_curve_info_from_grp_id() 448 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id() 449 curve_info++ ) in mbedtls_ecp_curve_info_from_grp_id() 451 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id() [all …]
|
D | psa_crypto_ecp.c | 298 const mbedtls_ecp_curve_info *curve_info = in mbedtls_psa_ecp_generate_key() local 305 if( grp_id == MBEDTLS_ECP_DP_NONE || curve_info == NULL ) in mbedtls_psa_ecp_generate_key()
|
D | ssl_cli.c | 2483 const mbedtls_ecp_curve_info *curve_info; in ssl_check_server_ecdh_params() local 2491 curve_info = mbedtls_ecp_curve_info_from_grp_id( grp_id ); in ssl_check_server_ecdh_params() 2492 if( curve_info == NULL ) in ssl_check_server_ecdh_params() 2498 MBEDTLS_SSL_DEBUG_MSG( 2, ( "ECDH curve: %s", curve_info->name ) ); in ssl_check_server_ecdh_params()
|
D | ssl_srv.c | 326 const mbedtls_ecp_curve_info *curve_info, **curves; in ssl_parse_supported_elliptic_curves() local 371 curve_info = mbedtls_ecp_curve_info_from_tls_id( ( p[0] << 8 ) | p[1] ); in ssl_parse_supported_elliptic_curves() 373 if( curve_info != NULL ) in ssl_parse_supported_elliptic_curves() 375 *curves++ = curve_info; in ssl_parse_supported_elliptic_curves()
|
/third_party/mbedtls/include/mbedtls/ |
D | psa_util.h | 378 const mbedtls_ecp_curve_info *curve_info = in mbedtls_psa_parse_tls_ecc_group() local 380 if( curve_info == NULL ) in mbedtls_psa_parse_tls_ecc_group() 383 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) ); in mbedtls_psa_parse_tls_ecc_group()
|
/third_party/mbedtls/programs/fuzz/ |
D | fuzz_privkey.c | 56 const mbedtls_ecp_curve_info *curve_info = in LLVMFuzzerTestOneInput() local 61 if( curve_info == NULL ) in LLVMFuzzerTestOneInput()
|
D | fuzz_pubkey.c | 49 const mbedtls_ecp_curve_info *curve_info = in LLVMFuzzerTestOneInput() local 54 if( curve_info == NULL ) in LLVMFuzzerTestOneInput()
|