Home
last modified time | relevance | path

Searched refs:grp_id (Results 1 – 14 of 14) sorted by relevance

/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Decp.h82 mbedtls_ecp_group_id grp_id; /*!< Internal identifier */ member
258 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_grp_id( mbedtls_ecp_group_id grp_id );
641 int mbedtls_ecp_gen_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key,
Doid.h456 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id );
467 int mbedtls_oid_get_oid_by_ec_grp( mbedtls_ecp_group_id grp_id,
Dssl_internal.h395 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id );
/net-tools-3.6.0/mbedtls-2.4.0/library/
Doid.c453 mbedtls_ecp_group_id grp_id; member
530 FN_OID_TYPED_FROM_ASN1(oid_ecp_grp_t, grp_id, oid_ecp_grp)
531 FN_OID_GET_ATTR1(mbedtls_oid_get_ec_grp, oid_ecp_grp_t, grp_id, mbedtls_ecp_group_id, grp_id)
532 …D_BY_ATTR1(mbedtls_oid_get_oid_by_ec_grp, oid_ecp_grp_t, oid_ecp_grp, mbedtls_ecp_group_id, grp_id)
Dpkparse.c370 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
403 *grp_id = *id; in pk_group_id_from_group()
415 mbedtls_ecp_group_id *grp_id ) in pk_group_id_from_specified() argument
425 ret = pk_group_id_from_group( &grp, grp_id ); in pk_group_id_from_specified()
445 mbedtls_ecp_group_id grp_id; in pk_use_ecparams() local
449 if( mbedtls_oid_get_ec_grp( params, &grp_id ) != 0 ) in pk_use_ecparams()
455 if( ( ret = pk_group_id_from_specified( params, &grp_id ) ) != 0 ) in pk_use_ecparams()
465 if( grp->id != MBEDTLS_ECP_DP_NONE && grp->id != grp_id ) in pk_use_ecparams()
468 if( ( ret = mbedtls_ecp_group_load( grp, grp_id ) ) != 0 ) in pk_use_ecparams()
Decp.c187 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list()
190 ecp_supported_grp_id[i++] = curve_info->grp_id; in mbedtls_ecp_grp_id_list()
203 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
208 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id()
211 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id()
226 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_tls_id()
244 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_name()
622 return mbedtls_ecp_group_load( grp, curve_info->grp_id ); in mbedtls_ecp_tls_read_group()
1908 int mbedtls_ecp_gen_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key, in mbedtls_ecp_gen_key() argument
1913 if( ( ret = mbedtls_ecp_group_load( &key->grp, grp_id ) ) != 0 ) in mbedtls_ecp_gen_key()
[all …]
Dssl_cli.c256 const mbedtls_ecp_group_id *grp_id; local
266 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ )
268 info = mbedtls_ecp_curve_info_from_grp_id( *grp_id );
270 for( info = mbedtls_ecp_curve_list(); info->grp_id != MBEDTLS_ECP_DP_NONE; info++ )
291 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ )
293 info = mbedtls_ecp_curve_info_from_grp_id( *grp_id );
295 for( info = mbedtls_ecp_curve_list(); info->grp_id != MBEDTLS_ECP_DP_NONE; info++ )
Dssl_srv.c589 mbedtls_ecp_group_id grp_id = mbedtls_pk_ec( *pk )->grp.id; in ssl_check_key_curve() local
593 if( (*crv)->grp_id == grp_id ) in ssl_check_key_curve()
2817 if( (*curve)->grp_id == *gid )
2830 (*curve)->grp_id ) ) != 0 )
Dssl_tls.c7456 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id ) in mbedtls_ssl_check_curve() argument
7464 if( *gid == grp_id ) in mbedtls_ssl_check_curve()
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/
Dbenchmark.c721 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main()
726 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in main()
740 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main()
745 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 || in main()
775 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main()
780 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
821 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in main()
826 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/example-benchmark/
Dmain.cpp773 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark()
778 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in benchmark()
792 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark()
797 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 || in benchmark()
827 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark()
832 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in benchmark()
873 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in benchmark()
878 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in benchmark()
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/
Dgen_key.c91 #define DFL_EC_CURVE mbedtls_ecp_curve_list()->grp_id
267 opt.ec_curve = curve_info->grp_id; in main()
Decdsa.c55 #define ECPARAMS mbedtls_ecp_curve_list()->grp_id
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecp.function32 void ecp_check_pub_mx( int grp_id, char *key_hex, int ret )
40 TEST_ASSERT( mbedtls_ecp_group_load( &grp, grp_id ) == 0 );