Home
last modified time | relevance | path

Searched refs:rs_ctx (Results 1 – 16 of 16) sorted by relevance

/mbedtls-development/library/
A Decdsa.c170 #define ECDSA_RS_ECP ( rs_ctx == NULL ? NULL : &rs_ctx->ecp )
179 if( rs_ctx != NULL && rs_ctx->ecp.depth++ == 0 ) \
184 rs_ctx != NULL && rs_ctx->SUB == NULL ) \
280 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
321 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
335 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
373 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
452 if( rs_ctx != NULL && rs_ctx->det != NULL ) in ecdsa_sign_det_restartable()
470 if( rs_ctx != NULL && rs_ctx->det != NULL ) in ecdsa_sign_det_restartable()
545 if( rs_ctx != NULL && rs_ctx->ver != NULL ) in ecdsa_verify_restartable()
[all …]
A Decp.c1718 if( rs_ctx != NULL && rs_ctx->rsm != NULL ) in ecp_precompute_comb()
1734 if( rs_ctx != NULL && rs_ctx->rsm != NULL ) in ecp_precompute_comb()
1751 if( rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->i != 0 ) in ecp_precompute_comb()
1771 if( rs_ctx != NULL && rs_ctx->rsm != NULL ) in ecp_precompute_comb()
1899 if( rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->i != 0 ) in ecp_mul_comb_core()
2151 if( rs_ctx != NULL && rs_ctx->rsm != NULL && rs_ctx->rsm->T != NULL ) in ecp_mul_comb()
2665 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
2683 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
2696 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
2704 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
[all …]
A Dpk.c85 ctx->rs_ctx = NULL; in mbedtls_pk_restart_init()
99 ctx->pk_info->rs_free_func( ctx->rs_ctx ); in mbedtls_pk_restart_free()
102 ctx->rs_ctx = NULL; in mbedtls_pk_restart_free()
292 if( rs_ctx != NULL && in mbedtls_pk_verify_restartable()
302 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx ); in mbedtls_pk_verify_restartable()
305 mbedtls_pk_restart_free( rs_ctx ); in mbedtls_pk_verify_restartable()
310 (void) rs_ctx; in mbedtls_pk_verify_restartable()
401 mbedtls_pk_restart_ctx *rs_ctx ) in mbedtls_pk_sign_restartable() argument
414 if( rs_ctx != NULL && in mbedtls_pk_sign_restartable()
426 f_rng, p_rng, rs_ctx->rs_ctx ); in mbedtls_pk_sign_restartable()
[all …]
A Dpk_wrap.c297 void *rs_ctx );
303 void *rs_ctx );
319 eckey_restart_ctx *rs_ctx; in eckey_rs_alloc() local
325 rs_ctx = ctx; in eckey_rs_alloc()
335 eckey_restart_ctx *rs_ctx; in eckey_rs_free() local
340 rs_ctx = ctx; in eckey_rs_free()
350 void *rs_ctx ) in eckey_verify_rs_wrap() argument
353 eckey_restart_ctx *rs = rs_ctx; in eckey_verify_rs_wrap()
375 void *rs_ctx ) in eckey_sign_rs_wrap() argument
378 eckey_restart_ctx *rs = rs_ctx; in eckey_sign_rs_wrap()
[all …]
A Decdh.c78 mbedtls_ecp_restart_ctx *rs_ctx ) in ecdh_gen_public_restartable() argument
84 if( rs_ctx == NULL || rs_ctx->rsm == NULL ) in ecdh_gen_public_restartable()
89 f_rng, p_rng, rs_ctx ) ); in ecdh_gen_public_restartable()
119 mbedtls_ecp_restart_ctx *rs_ctx ) in ecdh_compute_shared_restartable() argument
310 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_params_internal() local
318 rs_ctx = &ctx->rs; in ecdh_make_params_internal()
532 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_make_public_internal() local
540 rs_ctx = &ctx->rs; in ecdh_make_public_internal()
654 mbedtls_ecp_restart_ctx *rs_ctx = NULL; in ecdh_calc_secret_internal() local
662 rs_ctx = &ctx->rs; in ecdh_calc_secret_internal()
[all …]
A Dx509_crt.c2465 (void) rs_ctx; in x509_crt_check_signature()
2567 if( rs_ctx != NULL && rs_ctx->parent != NULL ) in x509_crt_find_parent_in()
2570 parent = rs_ctx->parent; in x509_crt_find_parent_in()
2575 rs_ctx->parent = NULL; in x509_crt_find_parent_in()
2576 rs_ctx->fallback_parent = NULL; in x509_crt_find_parent_in()
2610 rs_ctx->parent = parent; in x509_crt_find_parent_in()
2691 if( rs_ctx != NULL && rs_ctx->parent_is_trusted != -1 ) in x509_crt_find_parent()
2694 rs_ctx->parent_is_trusted = -1; in x509_crt_find_parent()
2830 if( rs_ctx != NULL && rs_ctx->in_progress == x509_crt_rs_find_parent ) in x509_crt_verify_chain()
2834 self_cnt = rs_ctx->self_cnt; in x509_crt_verify_chain()
[all …]
A Dpk_wrap.h61 void *rs_ctx );
68 void *p_rng, void *rs_ctx );
99 void (*rs_free_func)( void *rs_ctx );
A Dssl_cli.c3089 void *rs_ctx = NULL; in ssl_parse_server_key_exchange() local
3206 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_parse_server_key_exchange()
3210 md_alg, hash, hashlen, p, sig_len, rs_ctx ) ) != 0 ) in ssl_parse_server_key_exchange()
3925 void *rs_ctx = NULL; in ssl_write_certificate_verify() local
4024 rs_ctx = &ssl->handshake->ecrs_ctx.pk; in ssl_write_certificate_verify()
4032 ssl->conf->f_rng, ssl->conf->p_rng, rs_ctx ) ) != 0 ) in ssl_write_certificate_verify()
A Dssl_tls.c2014 void *rs_ctx ) in ssl_parse_certificate_verify() argument
2046 ((void) rs_ctx); in ssl_parse_certificate_verify()
2087 f_vrfy, p_vrfy, rs_ctx ); in ssl_parse_certificate_verify()
2261 void *rs_ctx = NULL; in mbedtls_ssl_parse_certificate() local
2331 rs_ctx = &ssl->handshake->ecrs_ctx; in mbedtls_ssl_parse_certificate()
2335 chain, rs_ctx ); in mbedtls_ssl_parse_certificate()
/mbedtls-development/tests/suites/
A Dtest_suite_ecdsa.function315 mbedtls_ecdsa_restart_ctx rs_ctx;
319 mbedtls_ecdsa_restart_init( &rs_ctx );
330 hash->x, hash->len, sig->x, sig->len, &rs_ctx );
343 hash->x, hash->len, sig->x, sig->len, &rs_ctx );
352 hash->x, hash->len, sig->x, sig->len, &rs_ctx );
368 mbedtls_ecdsa_restart_free( &rs_ctx );
378 mbedtls_ecdsa_restart_ctx rs_ctx;
385 mbedtls_ecdsa_restart_init( &rs_ctx );
408 mbedtls_test_rnd_std_rand, NULL, &rs_ctx );
424 mbedtls_test_rnd_std_rand, NULL, &rs_ctx );
[all …]
A Dtest_suite_pk.function388 mbedtls_pk_restart_ctx *rs_ctx = NULL;
392 rs_ctx = &ctx;
393 mbedtls_pk_restart_init( rs_ctx );
421 mbedtls_pk_restart_free( rs_ctx );
523 mbedtls_pk_restart_ctx rs_ctx;
530 mbedtls_pk_restart_init( &rs_ctx );
614 mbedtls_pk_restart_free( &rs_ctx );
628 void *rs_ctx = NULL;
632 rs_ctx = &ctx;
633 mbedtls_pk_restart_init( rs_ctx );
[all …]
A Dtest_suite_x509parse.function550 mbedtls_x509_crt_restart_ctx rs_ctx;
565 mbedtls_x509_crt_restart_init( &rs_ctx );
578 NULL, NULL, &rs_ctx );
590 NULL, NULL, &rs_ctx );
594 mbedtls_x509_crt_restart_free( &rs_ctx );
/mbedtls-development/include/mbedtls/
A Decp.h396 mbedtls_ecp_restart_ctx *rs_ctx,
401 MBEDTLS_MPI_CHK( mbedtls_ecp_check_budget( grp, rs_ctx, \
978 mbedtls_ecp_restart_ctx *rs_ctx );
1064 mbedtls_ecp_restart_ctx *rs_ctx );
A Decdsa.h360 mbedtls_ecdsa_restart_ctx *rs_ctx );
427 mbedtls_ecdsa_restart_ctx *rs_ctx );
A Dpk.h212 void * MBEDTLS_PRIVATE(rs_ctx); /**< Underlying restart context */
469 mbedtls_pk_restart_ctx *rs_ctx );
572 mbedtls_pk_restart_ctx *rs_ctx );
A Dx509_crt.h808 mbedtls_x509_crt_restart_ctx *rs_ctx );

Completed in 42 milliseconds