| /lib/mbedtls/external/mbedtls/library/ |
| A D | ecdsa.c | 146 #define ECDSA_RS_ECP (rs_ctx == NULL ? NULL : &rs_ctx->ecp) 162 rs_ctx->SUB = mbedtls_calloc(1, sizeof(*rs_ctx->SUB)); \ 273 if (rs_ctx != NULL && rs_ctx->sig != NULL) { in mbedtls_ecdsa_sign_restartable() 311 if (rs_ctx != NULL && rs_ctx->sig != NULL) { in mbedtls_ecdsa_sign_restartable() 325 if (rs_ctx != NULL && rs_ctx->sig != NULL) { in mbedtls_ecdsa_sign_restartable() 363 if (rs_ctx != NULL && rs_ctx->sig != NULL) { in mbedtls_ecdsa_sign_restartable() 423 if (rs_ctx != NULL && rs_ctx->det != NULL) { in mbedtls_ecdsa_sign_det_restartable() 441 if (rs_ctx != NULL && rs_ctx->det != NULL) { in mbedtls_ecdsa_sign_det_restartable() 512 if (rs_ctx != NULL && rs_ctx->ver != NULL) { in mbedtls_ecdsa_verify_restartable() 552 if (rs_ctx != NULL && rs_ctx->ver != NULL) { in mbedtls_ecdsa_verify_restartable() [all …]
|
| A D | ecp.c | 1865 if (rs_ctx != NULL && rs_ctx->rsm != NULL) { in ecp_precompute_comb() 1884 if (rs_ctx != NULL && rs_ctx->rsm != NULL) { in ecp_precompute_comb() 1900 if (rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->i != 0) { in ecp_precompute_comb() 1920 if (rs_ctx != NULL && rs_ctx->rsm != NULL) { in ecp_precompute_comb() 2070 if (rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->i != 0) { in ecp_mul_comb_core() 2324 if (rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->T != NULL) { in ecp_mul_comb() 2824 if (rs_ctx != NULL && rs_ctx->ma != NULL) { in mbedtls_ecp_muladd_restartable() 2844 if (rs_ctx != NULL && rs_ctx->ma != NULL) { in mbedtls_ecp_muladd_restartable() 2859 if (rs_ctx != NULL && rs_ctx->ma != NULL) { in mbedtls_ecp_muladd_restartable() 2868 if (rs_ctx != NULL && rs_ctx->ma != NULL) { in mbedtls_ecp_muladd_restartable() [all …]
|
| A D | ecdh.c | 58 mbedtls_ecp_restart_ctx *rs_ctx) in ecdh_gen_public_restartable() argument 64 restarting = (rs_ctx != NULL && rs_ctx->rsm != NULL); in ecdh_gen_public_restartable() 72 f_rng, p_rng, rs_ctx)); in ecdh_gen_public_restartable() 106 f_rng, p_rng, rs_ctx)); in ecdh_compute_shared_restartable() 285 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_params_internal() local 294 rs_ctx = &ctx->rs; in ecdh_make_params_internal() 503 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_public_internal() local 512 rs_ctx = &ctx->rs; in ecdh_make_public_internal() 621 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_calc_secret_internal() local 630 rs_ctx = &ctx->rs; in ecdh_calc_secret_internal() [all …]
|
| A D | x509_crt.c | 2164 (void) rs_ctx; in x509_crt_check_signature() 2269 if (rs_ctx != NULL && rs_ctx->parent != NULL) { in x509_crt_find_parent_in() 2271 parent = rs_ctx->parent; in x509_crt_find_parent_in() 2276 rs_ctx->parent = NULL; in x509_crt_find_parent_in() 2277 rs_ctx->fallback_parent = NULL; in x509_crt_find_parent_in() 2309 rs_ctx->parent = parent; in x509_crt_find_parent_in() 2393 if (rs_ctx != NULL && rs_ctx->parent_is_trusted != -1) { in x509_crt_find_parent() 2395 rs_ctx->parent_is_trusted = -1; in x509_crt_find_parent() 2536 if (rs_ctx != NULL && rs_ctx->in_progress == x509_crt_rs_find_parent) { in x509_crt_verify_chain() 2539 self_cnt = rs_ctx->self_cnt; in x509_crt_verify_chain() [all …]
|
| A D | pk.c | 91 ctx->rs_ctx = NULL; in mbedtls_pk_restart_init() 104 ctx->pk_info->rs_free_func(ctx->rs_ctx); in mbedtls_pk_restart_free() 107 ctx->rs_ctx = NULL; in mbedtls_pk_restart_free() 1059 if (rs_ctx != NULL && in mbedtls_pk_verify_restartable() 1069 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx); in mbedtls_pk_verify_restartable() 1072 mbedtls_pk_restart_free(rs_ctx); in mbedtls_pk_verify_restartable() 1078 (void) rs_ctx; in mbedtls_pk_verify_restartable() 1250 if (rs_ctx != NULL && in mbedtls_pk_sign_restartable() 1262 f_rng, p_rng, rs_ctx->rs_ctx); in mbedtls_pk_sign_restartable() 1265 mbedtls_pk_restart_free(rs_ctx); in mbedtls_pk_sign_restartable() [all …]
|
| A D | pk_wrap.h | 52 void *rs_ctx); 59 void *p_rng, void *rs_ctx); 90 void (*rs_free_func)(void *rs_ctx);
|
| A D | pk_wrap.c | 833 void *rs_ctx); 848 eckey_restart_ctx *rs_ctx; in eckey_rs_alloc() local 853 rs_ctx = ctx; in eckey_rs_alloc() 863 eckey_restart_ctx *rs_ctx; in eckey_rs_free() local 869 rs_ctx = ctx; in eckey_rs_free() 871 mbedtls_ecdsa_free(&rs_ctx->ecdsa_ctx); in eckey_rs_free() 879 void *rs_ctx) in eckey_verify_rs_wrap() argument 882 eckey_restart_ctx *rs = rs_ctx; in eckey_verify_rs_wrap() 906 void *rs_ctx) in eckey_sign_rs_wrap() argument 909 eckey_restart_ctx *rs = rs_ctx; in eckey_sign_rs_wrap() [all …]
|
| A D | ssl_tls12_client.c | 2300 void *rs_ctx = NULL; in ssl_parse_server_key_exchange() local 2402 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_parse_server_key_exchange() 2423 md_alg, hash, hashlen, p, sig_len, rs_ctx); in ssl_parse_server_key_exchange() 3248 void *rs_ctx = NULL; in ssl_write_certificate_verify() local 3335 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_write_certificate_verify() 3344 ssl->conf->f_rng, ssl->conf->p_rng, rs_ctx)) != 0) { in ssl_write_certificate_verify()
|
| A D | ssl_tls.c | 7934 void *rs_ctx) in ssl_parse_certificate_verify() argument 7963 ((void) rs_ctx); in ssl_parse_certificate_verify() 8002 f_vrfy, p_vrfy, rs_ctx); in ssl_parse_certificate_verify() 8183 void *rs_ctx = NULL; in mbedtls_ssl_parse_certificate() local 8251 rs_ctx = &ssl->handshake->ecrs_ctx; in mbedtls_ssl_parse_certificate() 8256 chain, rs_ctx); in mbedtls_ssl_parse_certificate()
|
| /lib/mbedtls/external/mbedtls/include/mbedtls/ |
| A D | ecdsa.h | 278 mbedtls_ecdsa_restart_ctx *rs_ctx); 339 mbedtls_ecdsa_restart_ctx *rs_ctx); 419 mbedtls_ecdsa_restart_ctx *rs_ctx); 525 mbedtls_ecdsa_restart_ctx *rs_ctx); 592 mbedtls_ecdsa_restart_ctx *rs_ctx);
|
| A D | ecp.h | 403 mbedtls_ecp_restart_ctx *rs_ctx, 408 MBEDTLS_MPI_CHK(mbedtls_ecp_check_budget(grp, rs_ctx, \ 1004 mbedtls_ecp_restart_ctx *rs_ctx); 1110 mbedtls_ecp_restart_ctx *rs_ctx);
|
| A D | pk.h | 273 void *MBEDTLS_PRIVATE(rs_ctx); /**< Underlying restart context */ 771 mbedtls_pk_restart_ctx *rs_ctx); 917 mbedtls_pk_restart_ctx *rs_ctx);
|
| A D | x509_crt.h | 752 mbedtls_x509_crt_restart_ctx *rs_ctx);
|
| /lib/mbedtls/external/mbedtls/tests/suites/ |
| A D | test_suite_ecdsa.function | 368 mbedtls_ecdsa_restart_ctx rs_ctx; 372 mbedtls_ecdsa_restart_init(&rs_ctx); 384 &rs_ctx); 398 &rs_ctx); 408 &rs_ctx); 418 &rs_ctx); 424 mbedtls_ecdsa_restart_free(&rs_ctx); 434 mbedtls_ecdsa_restart_ctx rs_ctx; 441 mbedtls_ecdsa_restart_init(&rs_ctx); 462 &rs_ctx); [all …]
|
| A D | test_suite_pk.function | 1095 rs_ctx = &ctx; 1096 mbedtls_pk_restart_init(rs_ctx); 1146 mbedtls_pk_restart_free(rs_ctx); 1257 mbedtls_pk_restart_ctx rs_ctx; 1262 mbedtls_pk_restart_init(&rs_ctx); 1319 mbedtls_pk_restart_free(&rs_ctx); 1330 mbedtls_pk_restart_free(&rs_ctx); 1346 void *rs_ctx = NULL; 1350 rs_ctx = &ctx; 1351 mbedtls_pk_restart_init(rs_ctx); [all …]
|
| A D | test_suite_x509parse.function | 645 mbedtls_x509_crt_restart_ctx rs_ctx; 659 mbedtls_x509_crt_restart_init(&rs_ctx); 673 NULL, NULL, &rs_ctx); 685 NULL, NULL, &rs_ctx); 689 mbedtls_x509_crt_restart_free(&rs_ctx);
|