/third_party/mbedtls/library/ |
D | ecdh.c | 55 return( ctx->grp_id ); in mbedtls_ecdh_grp_id() 197 mbedtls_ecp_group_id grp_id ) in ecdh_setup_internal() argument 201 ret = mbedtls_ecp_group_load( &ctx->grp, grp_id ); in ecdh_setup_internal() 213 int mbedtls_ecdh_setup( mbedtls_ecdh_context *ctx, mbedtls_ecp_group_id grp_id ) in mbedtls_ecdh_setup() argument 218 return( ecdh_setup_internal( ctx, grp_id ) ); in mbedtls_ecdh_setup() 220 switch( grp_id ) in mbedtls_ecdh_setup() 226 ctx->grp_id = grp_id; in mbedtls_ecdh_setup() 227 return( mbedtls_everest_setup( &ctx->ctx.everest_ecdh, grp_id ) ); in mbedtls_ecdh_setup() 232 ctx->grp_id = grp_id; in mbedtls_ecdh_setup() 234 return( ecdh_setup_internal( &ctx->ctx.mbed_ecdh, grp_id ) ); in mbedtls_ecdh_setup() [all …]
|
D | psa_crypto_ecp.c | 53 mbedtls_ecp_group_id grp_id = MBEDTLS_ECP_DP_NONE; in mbedtls_psa_ecp_load_representation() local 100 grp_id = mbedtls_ecc_group_of_psa( PSA_KEY_TYPE_ECC_GET_FAMILY( type ), in mbedtls_psa_ecp_load_representation() 102 if( grp_id == MBEDTLS_ECP_DP_NONE ) in mbedtls_psa_ecp_load_representation() 115 mbedtls_ecp_group_load( &ecp->grp, grp_id ) ); in mbedtls_psa_ecp_load_representation() 295 mbedtls_ecp_group_id grp_id = in mbedtls_psa_ecp_generate_key() local 299 mbedtls_ecp_curve_info_from_grp_id( grp_id ); in mbedtls_psa_ecp_generate_key() 305 if( grp_id == MBEDTLS_ECP_DP_NONE || curve_info == NULL ) in mbedtls_psa_ecp_generate_key() 309 ret = mbedtls_ecp_gen_key( grp_id, &ecp, in mbedtls_psa_ecp_generate_key()
|
D | oid.c | 478 mbedtls_ecp_group_id grp_id; member 555 FN_OID_TYPED_FROM_ASN1(oid_ecp_grp_t, grp_id, oid_ecp_grp) 556 FN_OID_GET_ATTR1(mbedtls_oid_get_ec_grp, oid_ecp_grp_t, grp_id, mbedtls_ecp_group_id, grp_id) 557 …D_BY_ATTR1(mbedtls_oid_get_oid_by_ec_grp, oid_ecp_grp_t, oid_ecp_grp, mbedtls_ecp_group_id, grp_id)
|
D | ecp.c | 427 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list() 430 ecp_supported_grp_id[i++] = curve_info->grp_id; in mbedtls_ecp_grp_id_list() 443 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_grp_id( mbedtls_ecp_group_id grp_id ) in mbedtls_ecp_curve_info_from_grp_id() argument 448 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id() 451 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id() 466 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_tls_id() 487 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_name() 935 mbedtls_ecp_group_id grp_id; in mbedtls_ecp_tls_read_group() local 940 if( ( ret = mbedtls_ecp_tls_read_group_id( &grp_id, buf, len ) ) != 0 ) in mbedtls_ecp_tls_read_group() 943 return( mbedtls_ecp_group_load( grp, grp_id ) ); in mbedtls_ecp_tls_read_group() [all …]
|
D | pkparse.c | 385 static int pk_group_id_from_group( const mbedtls_ecp_group *grp, mbedtls_ecp_group_id *grp_id ) in pk_group_id_from_group() argument 418 *grp_id = *id; in pk_group_id_from_group() 430 mbedtls_ecp_group_id *grp_id ) in pk_group_id_from_specified() argument 440 ret = pk_group_id_from_group( &grp, grp_id ); in pk_group_id_from_specified() 460 mbedtls_ecp_group_id grp_id; in pk_use_ecparams() local 464 if( mbedtls_oid_get_ec_grp( params, &grp_id ) != 0 ) in pk_use_ecparams() 470 if( ( ret = pk_group_id_from_specified( params, &grp_id ) ) != 0 ) in pk_use_ecparams() 480 if( grp->id != MBEDTLS_ECP_DP_NONE && grp->id != grp_id ) in pk_use_ecparams() 483 if( ( ret = mbedtls_ecp_group_load( grp, grp_id ) ) != 0 ) in pk_use_ecparams()
|
D | ssl_tls13_client.c | 296 curve_info->grp_id ) ) != 0 ) in ssl_tls13_generate_and_write_ecdh_key_exchange() 479 mbedtls_ecp_group_id grp_id; in ssl_tls13_check_ecdh_params() local 481 grp_id = ssl->handshake->ecdh_ctx.grp.id; in ssl_tls13_check_ecdh_params() 483 grp_id = ssl->handshake->ecdh_ctx.grp_id; in ssl_tls13_check_ecdh_params() 486 curve_info = mbedtls_ecp_curve_info_from_grp_id( grp_id ); in ssl_tls13_check_ecdh_params() 495 if( mbedtls_ssl_check_curve( ssl, grp_id ) != 0 ) in ssl_tls13_check_ecdh_params()
|
D | ecdh_misc.h | 36 mbedtls_ecp_group_id grp_id );
|
D | ssl_cli.c | 2484 mbedtls_ecp_group_id grp_id; in ssl_check_server_ecdh_params() local 2486 grp_id = ssl->handshake->ecdh_ctx.grp.id; in ssl_check_server_ecdh_params() 2488 grp_id = ssl->handshake->ecdh_ctx.grp_id; in ssl_check_server_ecdh_params() 2491 curve_info = mbedtls_ecp_curve_info_from_grp_id( grp_id ); in ssl_check_server_ecdh_params() 2501 if( mbedtls_ssl_check_curve( ssl, grp_id ) != 0 ) in ssl_check_server_ecdh_params()
|
D | ssl_srv.c | 891 mbedtls_ecp_group_id grp_id = mbedtls_pk_ec( *pk )->grp.id; in ssl_check_key_curve() local 895 if( (*crv)->grp_id == grp_id ) in ssl_check_key_curve() 3063 (*curve)->grp_id ) ) != 0 ) in ssl_prepare_server_key_exchange()
|
D | ssl_misc.h | 1277 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id );
|
/third_party/mbedtls/programs/test/ |
D | benchmark.c | 1073 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; 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() 1095 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() 1098 if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) ) in main() 1103 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 || in main() 1145 if( mbedtls_ecp_group_load( &grp, curve_list->grp_id ) != 0 ) in main() 1155 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main() 1158 if( ! mbedtls_ecdh_can_do( curve_info->grp_id ) ) in main() 1163 CHECK_AND_CONTINUE( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) ); in main() [all …]
|
/third_party/mbedtls/programs/fuzz/ |
D | fuzz_privkey.c | 55 mbedtls_ecp_group_id grp_id = ecp->grp.id; in LLVMFuzzerTestOneInput() local 57 mbedtls_ecp_curve_info_from_grp_id( grp_id ); in LLVMFuzzerTestOneInput()
|
D | fuzz_pubkey.c | 48 mbedtls_ecp_group_id grp_id = ecp->grp.id; in LLVMFuzzerTestOneInput() local 50 mbedtls_ecp_curve_info_from_grp_id( grp_id ); in LLVMFuzzerTestOneInput()
|
/third_party/mbedtls/include/mbedtls/ |
D | ecp.h | 155 mbedtls_ecp_group_id grp_id; /*!< An internal identifier. */ member 553 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_grp_id( mbedtls_ecp_group_id grp_id ); 1213 int mbedtls_ecp_gen_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key, 1235 int mbedtls_ecp_read_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key,
|
D | ecdh.h | 139 mbedtls_ecp_group_id MBEDTLS_PRIVATE(grp_id);/*!< The elliptic curve used. */ 259 mbedtls_ecp_group_id grp_id );
|
D | oid.h | 507 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id ); 518 int mbedtls_oid_get_oid_by_ec_grp( mbedtls_ecp_group_id grp_id,
|
D | psa_util.h | 383 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) ); in mbedtls_psa_parse_tls_ecc_group()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ecdh.function | 4 static int load_public_key( int grp_id, data_t *point, 8 TEST_ASSERT( mbedtls_ecp_group_load( &ecp->grp, grp_id ) == 0 ); 20 static int load_private_key( int grp_id, data_t *private_key, 25 TEST_ASSERT( mbedtls_ecp_read_key( grp_id, ecp, 365 void ecdh_exchange_calc_secret( int grp_id, 383 if( ! load_private_key( grp_id, our_private_key, &our_key, &rnd_info ) ) 385 if( ! load_public_key( grp_id, their_point, &their_key ) )
|
D | test_suite_ecp.function | 74 void ecp_check_pub( int grp_id, char * x_hex, char * y_hex, char * z_hex, 83 TEST_ASSERT( mbedtls_ecp_group_load( &grp, grp_id ) == 0 ); 854 void mbedtls_ecp_read_key( int grp_id, data_t* in_key, int expected, int canonical ) 863 ret = mbedtls_ecp_read_key( grp_id, &key, in_key->x, in_key->len ); 889 ret = mbedtls_ecp_read_key( grp_id, &key2, export1, in_key->len );
|
D | test_suite_pk.function | 517 void pk_sign_verify_restart( int pk_type, int grp_id, char *d_str, 537 TEST_ASSERT( mbedtls_ecp_group_load( &mbedtls_pk_ec( prv )->grp, grp_id ) == 0 ); 541 TEST_ASSERT( mbedtls_ecp_group_load( &mbedtls_pk_ec( pub )->grp, grp_id ) == 0 );
|
/third_party/mbedtls/3rdparty/everest/library/ |
D | everest.c | 40 int mbedtls_everest_setup( mbedtls_ecdh_context_everest *ctx, int grp_id ) in mbedtls_everest_setup() argument 42 if( grp_id != MBEDTLS_ECP_DP_CURVE25519 ) in mbedtls_everest_setup()
|
/third_party/mbedtls/3rdparty/everest/include/everest/ |
D | everest.h | 61 int mbedtls_everest_setup( mbedtls_ecdh_context_everest *ctx, int grp_id );
|
/third_party/mbedtls/programs/pkey/ |
D | gen_key.c | 89 #define DFL_EC_CURVE mbedtls_ecp_curve_list()->grp_id 273 opt.ec_curve = curve_info->grp_id; in main()
|
D | ecdsa.c | 54 #define ECPARAMS mbedtls_ecp_curve_list()->grp_id
|
/third_party/mbedtls/programs/ssl/ |
D | ssl_client2.c | 1481 curve_cur->grp_id != MBEDTLS_ECP_DP_NONE; in main()
|