/third_party/mbedtls/library/ |
D | ecdsa.c | 158 #define ECDSA_RS_ECP (rs_ctx == NULL ? NULL : &rs_ctx->ecp) 167 if (rs_ctx != NULL && rs_ctx->ecp.depth++ == 0) \ 168 rs_ctx->ecp.ops_done = 0; \ 172 rs_ctx != NULL && rs_ctx->SUB == NULL) \ 174 rs_ctx->SUB = mbedtls_calloc(1, sizeof(*rs_ctx->SUB)); \ 175 if (rs_ctx->SUB == NULL) \ 178 ecdsa_restart_## SUB ##_init(rs_ctx->SUB); \ 185 if (rs_ctx != NULL && rs_ctx->SUB != NULL && \ 188 ecdsa_restart_## SUB ##_free(rs_ctx->SUB); \ 189 mbedtls_free(rs_ctx->SUB); \ [all …]
|
D | ecp.c | 254 mbedtls_ecp_restart_ctx *rs_ctx, in mbedtls_ecp_check_budget() argument 257 if (rs_ctx != NULL && ecp_max_ops != 0) { in mbedtls_ecp_check_budget() 270 if ((rs_ctx->ops_done != 0) && in mbedtls_ecp_check_budget() 271 (rs_ctx->ops_done > ecp_max_ops || in mbedtls_ecp_check_budget() 272 ops > ecp_max_ops - rs_ctx->ops_done)) { in mbedtls_ecp_check_budget() 277 rs_ctx->ops_done += ops; in mbedtls_ecp_check_budget() 286 if (rs_ctx != NULL && rs_ctx->depth++ == 0) \ 287 rs_ctx->ops_done = 0; \ 291 rs_ctx != NULL && rs_ctx->SUB == NULL) \ 293 rs_ctx->SUB = mbedtls_calloc(1, sizeof(*rs_ctx->SUB)); \ [all …]
|
D | ecdh.c | 70 mbedtls_ecp_restart_ctx *rs_ctx) in ecdh_gen_public_restartable() argument 76 restarting = (rs_ctx != NULL && rs_ctx->rsm != NULL); in ecdh_gen_public_restartable() 84 f_rng, p_rng, rs_ctx)); in ecdh_gen_public_restartable() 110 mbedtls_ecp_restart_ctx *rs_ctx) in ecdh_compute_shared_restartable() argument 118 f_rng, p_rng, rs_ctx)); in ecdh_compute_shared_restartable() 288 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_params_internal() local 297 rs_ctx = &ctx->rs; in ecdh_make_params_internal() 306 f_rng, p_rng, rs_ctx)) != 0) { in ecdh_make_params_internal() 506 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_public_internal() local 515 rs_ctx = &ctx->rs; in ecdh_make_public_internal() [all …]
|
D | x509_crt.c | 1981 mbedtls_x509_crt_restart_ctx *rs_ctx) in x509_crt_check_signature() argument 2015 if (rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA) { in x509_crt_check_signature() 2018 child->sig.p, child->sig.len, &rs_ctx->pk); in x509_crt_check_signature() 2021 (void) rs_ctx; in x509_crt_check_signature() 2117 mbedtls_x509_crt_restart_ctx *rs_ctx) in x509_crt_find_parent_in() argument 2125 if (rs_ctx != NULL && rs_ctx->parent != NULL) { in x509_crt_find_parent_in() 2127 parent = rs_ctx->parent; in x509_crt_find_parent_in() 2128 fallback_parent = rs_ctx->fallback_parent; in x509_crt_find_parent_in() 2129 fallback_signature_is_good = rs_ctx->fallback_signature_is_good; in x509_crt_find_parent_in() 2132 rs_ctx->parent = NULL; in x509_crt_find_parent_in() [all …]
|
D | pk.c | 88 ctx->rs_ctx = NULL; in mbedtls_pk_restart_init() 101 ctx->pk_info->rs_free_func(ctx->rs_ctx); in mbedtls_pk_restart_free() 104 ctx->rs_ctx = NULL; in mbedtls_pk_restart_free() 407 if ((ctx->rs_ctx = info->rs_alloc_func()) == NULL) { in pk_restart_setup() 424 mbedtls_pk_restart_ctx *rs_ctx) in mbedtls_pk_verify_restartable() argument 437 if (rs_ctx != NULL && in mbedtls_pk_verify_restartable() 442 if ((ret = pk_restart_setup(rs_ctx, ctx->pk_info)) != 0) { in mbedtls_pk_verify_restartable() 447 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx); in mbedtls_pk_verify_restartable() 450 mbedtls_pk_restart_free(rs_ctx); in mbedtls_pk_verify_restartable() 456 (void) rs_ctx; in mbedtls_pk_verify_restartable() [all …]
|
D | pk_wrap.c | 995 void *rs_ctx); 1001 void *rs_ctx); 1016 eckey_restart_ctx *rs_ctx; in eckey_rs_alloc() local 1021 rs_ctx = ctx; in eckey_rs_alloc() 1022 mbedtls_ecdsa_restart_init(&rs_ctx->ecdsa_rs); in eckey_rs_alloc() 1023 mbedtls_ecdsa_init(&rs_ctx->ecdsa_ctx); in eckey_rs_alloc() 1031 eckey_restart_ctx *rs_ctx; in eckey_rs_free() local 1037 rs_ctx = ctx; in eckey_rs_free() 1038 mbedtls_ecdsa_restart_free(&rs_ctx->ecdsa_rs); in eckey_rs_free() 1039 mbedtls_ecdsa_free(&rs_ctx->ecdsa_ctx); in eckey_rs_free() [all …]
|
D | pk_wrap.h | 64 void *rs_ctx); 71 void *p_rng, void *rs_ctx); 102 void (*rs_free_func)(void *rs_ctx);
|
D | ssl_tls12_client.c | 2295 void *rs_ctx = NULL; in ssl_parse_server_key_exchange() local 2397 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_parse_server_key_exchange() 2418 md_alg, hash, hashlen, p, sig_len, rs_ctx); in ssl_parse_server_key_exchange() 3244 void *rs_ctx = NULL; in ssl_write_certificate_verify() local 3331 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_write_certificate_verify() 3340 ssl->conf->f_rng, ssl->conf->p_rng, rs_ctx)) != 0) { in ssl_write_certificate_verify()
|
D | ssl_tls.c | 7306 void *rs_ctx) in ssl_parse_certificate_verify() argument 7335 ((void) rs_ctx); in ssl_parse_certificate_verify() 7374 f_vrfy, p_vrfy, rs_ctx); in ssl_parse_certificate_verify() 7556 void *rs_ctx = NULL; in mbedtls_ssl_parse_certificate() local 7624 rs_ctx = &ssl->handshake->ecrs_ctx; in mbedtls_ssl_parse_certificate() 7629 chain, rs_ctx); in mbedtls_ssl_parse_certificate()
|
/third_party/mbedtls/include/mbedtls/ |
D | ecdsa.h | 289 mbedtls_ecdsa_restart_ctx *rs_ctx); 347 mbedtls_ecdsa_restart_ctx *rs_ctx); 429 mbedtls_ecdsa_restart_ctx *rs_ctx); 535 mbedtls_ecdsa_restart_ctx *rs_ctx); 602 mbedtls_ecdsa_restart_ctx *rs_ctx);
|
D | ecp.h | 399 mbedtls_ecp_restart_ctx *rs_ctx, 404 MBEDTLS_MPI_CHK(mbedtls_ecp_check_budget(grp, rs_ctx, \ 1000 mbedtls_ecp_restart_ctx *rs_ctx); 1086 mbedtls_ecp_restart_ctx *rs_ctx);
|
D | pk.h | 244 void *MBEDTLS_PRIVATE(rs_ctx); /**< Underlying restart context */ 508 mbedtls_pk_restart_ctx *rs_ctx); 652 mbedtls_pk_restart_ctx *rs_ctx);
|
D | x509_crt.h | 743 mbedtls_x509_crt_restart_ctx *rs_ctx);
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ecdsa.function | 365 mbedtls_ecdsa_restart_ctx rs_ctx; 369 mbedtls_ecdsa_restart_init(&rs_ctx); 381 &rs_ctx); 395 &rs_ctx); 405 &rs_ctx); 415 &rs_ctx); 421 mbedtls_ecdsa_restart_free(&rs_ctx); 431 mbedtls_ecdsa_restart_ctx rs_ctx; 436 mbedtls_ecdsa_restart_init(&rs_ctx); 457 &rs_ctx); [all …]
|
D | test_suite_pk.function | 527 mbedtls_pk_restart_ctx *rs_ctx = NULL; 531 rs_ctx = &ctx; 532 mbedtls_pk_restart_init(rs_ctx); 554 &pk), rs_ctx) == result); 558 mbedtls_pk_restart_free(rs_ctx); 663 mbedtls_pk_restart_ctx rs_ctx; 670 mbedtls_pk_restart_init(&rs_ctx); 691 &rs_ctx); 704 hash->x, hash->len, sig, slen, &rs_ctx); 714 hash->x, hash->len, sig, slen, &rs_ctx); [all …]
|
D | test_suite_x509parse.function | 576 mbedtls_x509_crt_restart_ctx rs_ctx; 591 mbedtls_x509_crt_restart_init(&rs_ctx); 606 NULL, NULL, &rs_ctx); 618 NULL, NULL, &rs_ctx); 622 mbedtls_x509_crt_restart_free(&rs_ctx);
|