Searched refs:curve_info (Results 1 – 6 of 6) sorted by relevance
/net-tools-3.4.0/mbedtls-2.4.0/programs/test/ |
D | benchmark.c | 715 const mbedtls_ecp_curve_info *curve_info; in main() local 720 for( curve_info = mbedtls_ecp_curve_list(); in main() 721 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() 722 curve_info++ ) in main() 726 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in main() 731 curve_info->name ); in main() 733 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main() 739 for( curve_info = mbedtls_ecp_curve_list(); in main() 740 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() 741 curve_info++ ) in main() [all …]
|
/net-tools-3.4.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | main.cpp | 767 const mbedtls_ecp_curve_info *curve_info; in benchmark() local 772 for( curve_info = mbedtls_ecp_curve_list(); in benchmark() 773 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark() 774 curve_info++ ) in benchmark() 778 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in benchmark() 783 curve_info->name ); in benchmark() 785 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in benchmark() 791 for( curve_info = mbedtls_ecp_curve_list(); in benchmark() 792 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark() 793 curve_info++ ) in benchmark() [all …]
|
/net-tools-3.4.0/mbedtls-2.4.0/programs/pkey/ |
D | gen_key.c | 198 const mbedtls_ecp_curve_info *curve_info; in main() local 215 curve_info = mbedtls_ecp_curve_list(); in main() 216 mbedtls_printf( " %s (default)\n", curve_info->name ); in main() 217 while( ( ++curve_info )->name != NULL ) in main() 218 mbedtls_printf( " %s\n", curve_info->name ); in main() 265 if( ( curve_info = mbedtls_ecp_curve_info_from_name( q ) ) == NULL ) in main() 267 opt.ec_curve = curve_info->grp_id; in main()
|
/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | ecp.c | 184 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_grp_id_list() local 186 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_grp_id_list() 187 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list() 188 curve_info++ ) in mbedtls_ecp_grp_id_list() 190 ecp_supported_grp_id[i++] = curve_info->grp_id; in mbedtls_ecp_grp_id_list() 205 const mbedtls_ecp_curve_info *curve_info; in mbedtls_ecp_curve_info_from_grp_id() local 207 for( curve_info = mbedtls_ecp_curve_list(); in mbedtls_ecp_curve_info_from_grp_id() 208 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id() 209 curve_info++ ) in mbedtls_ecp_curve_info_from_grp_id() 211 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id() [all …]
|
D | ssl_cli.c | 1910 const mbedtls_ecp_curve_info *curve_info; local 1912 curve_info = mbedtls_ecp_curve_info_from_grp_id( ssl->handshake->ecdh_ctx.grp.id ); 1913 if( curve_info == NULL ) 1919 MBEDTLS_SSL_DEBUG_MSG( 2, ( "ECDH curve: %s", curve_info->name ) );
|
D | ssl_srv.c | 243 const mbedtls_ecp_curve_info *curve_info, **curves; in ssl_parse_supported_elliptic_curves() local 274 curve_info = mbedtls_ecp_curve_info_from_tls_id( ( p[0] << 8 ) | p[1] ); in ssl_parse_supported_elliptic_curves() 276 if( curve_info != NULL ) in ssl_parse_supported_elliptic_curves() 278 *curves++ = curve_info; in ssl_parse_supported_elliptic_curves()
|