Home
last modified time | relevance | path

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

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decdh.c53 return( ctx->grp_id ); in mbedtls_ecdh_grp_id()
195 mbedtls_ecp_group_id grp_id ) in ecdh_setup_internal() argument
199 ret = mbedtls_ecp_group_load( &ctx->grp, grp_id ); in ecdh_setup_internal()
216 return( ecdh_setup_internal( ctx, grp_id ) ); in mbedtls_ecdh_setup()
218 switch( grp_id ) in mbedtls_ecdh_setup()
224 ctx->grp_id = grp_id; in mbedtls_ecdh_setup()
230 ctx->grp_id = grp_id; in mbedtls_ecdh_setup()
232 return( ecdh_setup_internal( &ctx->ctx.mbed_ecdh, grp_id ) ); in mbedtls_ecdh_setup()
292 ctx->grp_id = MBEDTLS_ECP_DP_NONE; in mbedtls_ecdh_free()
413 mbedtls_ecp_group_id grp_id; in mbedtls_ecdh_read_params() local
[all …]
A Doid.c459 mbedtls_ecp_group_id grp_id; member
536 FN_OID_TYPED_FROM_ASN1(oid_ecp_grp_t, grp_id, oid_ecp_grp)
537 FN_OID_GET_ATTR1(mbedtls_oid_get_ec_grp, oid_ecp_grp_t, grp_id, mbedtls_ecp_group_id, grp_id)
538 …D_BY_ATTR1(mbedtls_oid_get_oid_by_ec_grp, oid_ecp_grp_t, oid_ecp_grp, mbedtls_ecp_group_id, grp_id)
A Dpkparse.c384 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
417 *grp_id = *id; in pk_group_id_from_group()
429 mbedtls_ecp_group_id *grp_id ) in pk_group_id_from_specified() argument
439 ret = pk_group_id_from_group( &grp, grp_id ); in pk_group_id_from_specified()
459 mbedtls_ecp_group_id grp_id; in pk_use_ecparams() local
463 if( mbedtls_oid_get_ec_grp( params, &grp_id ) != 0 ) in pk_use_ecparams()
469 if( ( ret = pk_group_id_from_specified( params, &grp_id ) ) != 0 ) in pk_use_ecparams()
479 if( grp->id != MBEDTLS_ECP_DP_NONE && grp->id != grp_id ) in pk_use_ecparams()
482 if( ( ret = mbedtls_ecp_group_load( grp, grp_id ) ) != 0 ) in pk_use_ecparams()
A Decp.c591 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_grp_id_list()
612 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_grp_id()
615 if( curve_info->grp_id == grp_id ) in mbedtls_ecp_curve_info_from_grp_id()
630 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_tls_id()
651 curve_info->grp_id != MBEDTLS_ECP_DP_NONE; in mbedtls_ecp_curve_info_from_name()
1087 mbedtls_ecp_group_id grp_id; in mbedtls_ecp_tls_read_group() local
1095 return( mbedtls_ecp_group_load( grp, grp_id ) ); in mbedtls_ecp_tls_read_group()
1133 *grp = curve_info->grp_id; in mbedtls_ecp_tls_read_group_id()
2999 if( grp_id == MBEDTLS_ECP_DP_CURVE25519 ) in ecp_check_bad_points_mx()
3014 (void) grp_id; in ecp_check_bad_points_mx()
[all …]
A Dssl_cli.c320 const mbedtls_ecp_group_id *grp_id; in ssl_write_supported_elliptic_curves_ext() local
330 for( grp_id = ssl->conf->curve_list; in ssl_write_supported_elliptic_curves_ext()
331 *grp_id != MBEDTLS_ECP_DP_NONE; in ssl_write_supported_elliptic_curves_ext()
332 grp_id++ ) in ssl_write_supported_elliptic_curves_ext()
359 for( grp_id = ssl->conf->curve_list; in ssl_write_supported_elliptic_curves_ext()
360 *grp_id != MBEDTLS_ECP_DP_NONE; in ssl_write_supported_elliptic_curves_ext()
361 grp_id++ ) in ssl_write_supported_elliptic_curves_ext()
2685 mbedtls_ecp_group_id grp_id; in ssl_check_server_ecdh_params() local
2687 grp_id = ssl->handshake->ecdh_ctx.grp.id; in ssl_check_server_ecdh_params()
2689 grp_id = ssl->handshake->ecdh_ctx.grp_id; in ssl_check_server_ecdh_params()
[all …]
A Dssl_srv.c931 mbedtls_ecp_group_id grp_id = mbedtls_pk_ec( *pk )->grp.id; in ssl_check_key_curve() local
935 if( (*crv)->grp_id == grp_id ) in ssl_check_key_curve()
3465 if( (*curve)->grp_id == *gid ) in ssl_prepare_server_key_exchange()
3478 (*curve)->grp_id ) ) != 0 ) in ssl_prepare_server_key_exchange()
A Dssl_tls.c7348 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id ) in mbedtls_ssl_check_curve() argument
7356 if( *gid == grp_id ) in mbedtls_ssl_check_curve()
7371 return( mbedtls_ssl_check_curve( ssl, curve_info->grp_id ) ); in mbedtls_ssl_check_curve_tls_id()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Decdh.h123 mbedtls_ecp_group_id grp_id;/*!< The elliptic curve used. */
246 mbedtls_ecp_group_id grp_id );
A Decp.h162 mbedtls_ecp_group_id grp_id; /*!< An internal identifier. */ member
568 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_grp_id( mbedtls_ecp_group_id grp_id );
1235 int mbedtls_ecp_gen_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key,
1257 int mbedtls_ecp_read_key( mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key,
A Doid.h515 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id );
526 int mbedtls_oid_get_oid_by_ec_grp( mbedtls_ecp_group_id grp_id,
A Dpsa_util.h381 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) ); in mbedtls_psa_parse_tls_ecc_group()
A Dssl_internal.h1134 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id );

Completed in 44 milliseconds