Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
Dssl_tls12_client.c1716 uint16_t tls_id; in ssl_parse_server_ecdh_params() local
1743 tls_id = *(*p)++; in ssl_parse_server_ecdh_params()
1744 tls_id <<= 8; in ssl_parse_server_ecdh_params()
1745 tls_id |= *(*p)++; in ssl_parse_server_ecdh_params()
1748 if (mbedtls_ssl_check_curve_tls_id(ssl, tls_id) != 0) { in ssl_parse_server_ecdh_params()
1751 (unsigned) tls_id)); in ssl_parse_server_ecdh_params()
1756 if (mbedtls_ssl_get_psa_curve_info_from_tls_id(tls_id, &ec_psa_family, in ssl_parse_server_ecdh_params()
1791 uint16_t tls_id; in ssl_check_server_ecdh_params() local
1799 tls_id = mbedtls_ssl_get_tls_id_from_ecp_group_id(grp_id); in ssl_check_server_ecdh_params()
1800 if (tls_id == 0) { in ssl_check_server_ecdh_params()
[all …]
Decp.c451 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_tls_id(uint16_t tls_id) in mbedtls_ecp_curve_info_from_tls_id() argument
458 if (curve_info->tls_id == tls_id) { in mbedtls_ecp_curve_info_from_tls_id()
930 uint16_t tls_id; in mbedtls_ecp_tls_read_group_id() local
949 tls_id = *(*buf)++; in mbedtls_ecp_tls_read_group_id()
950 tls_id <<= 8; in mbedtls_ecp_tls_read_group_id()
951 tls_id |= *(*buf)++; in mbedtls_ecp_tls_read_group_id()
953 if ((curve_info = mbedtls_ecp_curve_info_from_tls_id(tls_id)) == NULL) { in mbedtls_ecp_tls_read_group_id()
989 MBEDTLS_PUT_UINT16_BE(curve_info->tls_id, buf, 0); in mbedtls_ecp_tls_write_group()
Dssl_tls.c1170 uint16_t tls_id = mbedtls_ssl_get_tls_id_from_ecp_group_id( in ssl_handshake_init() local
1172 if (tls_id == 0) { in ssl_handshake_init()
1176 group_list[i] = tls_id; in ssl_handshake_init()
5552 int mbedtls_ssl_check_curve_tls_id(const mbedtls_ssl_context *ssl, uint16_t tls_id) in mbedtls_ssl_check_curve_tls_id() argument
5561 if (*group_list == tls_id) { in mbedtls_ssl_check_curve_tls_id()
5575 uint16_t tls_id = mbedtls_ssl_get_tls_id_from_ecp_group_id(grp_id); in mbedtls_ssl_check_curve() local
5577 if (tls_id == 0) { in mbedtls_ssl_check_curve()
5581 return mbedtls_ssl_check_curve_tls_id(ssl, tls_id); in mbedtls_ssl_check_curve()
5592 uint16_t tls_id; member
5641 int mbedtls_ssl_get_psa_curve_info_from_tls_id(uint16_t tls_id, in mbedtls_ssl_get_psa_curve_info_from_tls_id() argument
[all …]
Dssl_misc.h1564 int mbedtls_ssl_check_curve_tls_id(const mbedtls_ssl_context *ssl, uint16_t tls_id);
1587 int mbedtls_ssl_get_psa_curve_info_from_tls_id(uint16_t tls_id,
1598 mbedtls_ecp_group_id mbedtls_ssl_get_ecp_group_id_from_tls_id(uint16_t tls_id);
1617 const char *mbedtls_ssl_get_curve_name_from_tls_id(uint16_t tls_id);
Dssl_tls12_server.c2568 uint16_t tls_id = 0; in ssl_get_ecdh_params_from_cert() local
2614 tls_id = mbedtls_ssl_get_tls_id_from_ecp_group_id(key->grp.id); in ssl_get_ecdh_params_from_cert()
2615 if (tls_id == 0) { in ssl_get_ecdh_params_from_cert()
2622 mbedtls_ssl_get_psa_curve_info_from_tls_id(tls_id, &ecc_family, in ssl_get_ecdh_params_from_cert()
2772 uint16_t tls_id = mbedtls_ssl_get_tls_id_from_ecp_group_id( in ssl_prepare_server_key_exchange() local
2774 if (tls_id == 0) { in ssl_prepare_server_key_exchange()
2778 MBEDTLS_PUT_UINT16_BE(tls_id, out_p, 1); in ssl_prepare_server_key_exchange()
/third_party/mbedtls/include/mbedtls/
Decp.h162 uint16_t tls_id; /*!< The TLS NamedCurve identifier. */ member
583 const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_tls_id(uint16_t tls_id);
/third_party/musl/porting/liteos_a/user_debug/ldso/
Ddynlink.c87 size_t tls_id; member
412 && def.dso->tls_id > static_tls_cnt) { in do_relocs()
454 *reloc_addr = def.dso->tls_id; in do_relocs()
473 if (def.dso->tls_id > static_tls_cnt) { in do_relocs()
483 new->args[0] = def.dso->tls_id; in do_relocs()
1182 p->tls_id = ++tls_cnt; in load_library()
1617 if (p->tls_id <= old_cnt) continue; in install_new_tls()
1624 newdtv[j][p->tls_id] = in install_new_tls()
1628 if (p->tls_id == tls_cnt) break; in install_new_tls()
1878 app.tls_id = tls_cnt = 1; in __dls3()
[all …]
/third_party/musl/porting/liteos_a/user/ldso/
Ddynlink.c87 size_t tls_id; member
412 && def.dso->tls_id > static_tls_cnt) { in do_relocs()
454 *reloc_addr = def.dso->tls_id; in do_relocs()
473 if (def.dso->tls_id > static_tls_cnt) { in do_relocs()
483 new->args[0] = def.dso->tls_id; in do_relocs()
1183 p->tls_id = ++tls_cnt; in load_library()
1618 if (p->tls_id <= old_cnt) continue; in install_new_tls()
1625 newdtv[j][p->tls_id] = in install_new_tls()
1629 if (p->tls_id == tls_cnt) break; in install_new_tls()
1879 app.tls_id = tls_cnt = 1; in __dls3()
[all …]
/third_party/musl/ldso/
Ddynlink.c89 size_t tls_id; member
414 && def.dso->tls_id > static_tls_cnt) { in do_relocs()
456 *reloc_addr = def.dso->tls_id; in do_relocs()
475 if (def.dso->tls_id > static_tls_cnt) { in do_relocs()
485 new->args[0] = def.dso->tls_id; in do_relocs()
1166 p->tls_id = ++tls_cnt; in load_library()
1601 if (p->tls_id <= old_cnt) continue; in install_new_tls()
1608 newdtv[j][p->tls_id] = in install_new_tls()
1612 if (p->tls_id == tls_cnt) break; in install_new_tls()
1855 app.tls_id = tls_cnt = 1; in __dls3()
[all …]
/third_party/musl/porting/linux/user/src/internal/
Ddynlink.h114 size_t tls_id; member
/third_party/mbedtls/tests/suites/
Dtest_suite_ecp.function112 void mbedtls_ecp_curve_info(int id, int tls_id, int size, char *name)
117 by_tls = mbedtls_ecp_curve_info_from_tls_id(tls_id);
819 int tls_id)
828 unsigned char buf[3], ecparameters[3] = { 3, 0, tls_id };
880 TEST_EQUAL(crv->tls_id, tls_id);
883 crv_tls_id = mbedtls_ecp_curve_info_from_tls_id(crv->tls_id);
/third_party/musl/porting/linux/user/ldso/
Ddynlink.c1114 && def.dso->tls_id > static_tls_cnt) { in do_relocs()
1156 *reloc_addr = def.dso->tls_id; in do_relocs()
1175 if (def.dso->tls_id > static_tls_cnt) { in do_relocs()
1185 new->args[0] = def.dso->tls_id; in do_relocs()
2146 p->tls_id = ++tls_cnt; in load_library()
2741 if (p->tls_id <= old_cnt) continue; in install_new_tls()
2748 newdtv[j][p->tls_id] = in install_new_tls()
2752 if (p->tls_id == tls_cnt) break; in install_new_tls()
2998 app.tls_id = tls_cnt = 1; in __dls3()
3838 return __tls_get_addr((tls_mod_off_t []){def.dso->tls_id, def.sym->st_value-DTP_OFFSET}); in do_dlsym()
[all …]
/third_party/mbedtls/programs/ssl/
Dssl_client2.c1521 group_list[i++] = curve_cur->tls_id; in main()
Dssl_server2.c2414 group_list[i++] = curve_cur->tls_id; in main()