Lines Matching refs:pk_ctx
60 ctx->pk_ctx = NULL; in mbedtls_pk_init()
72 ctx->pk_info->ctx_free_func( ctx->pk_ctx ); in mbedtls_pk_free()
141 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup()
158 psa_key_id_t *pk_ctx; in mbedtls_pk_setup_opaque() local
173 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup_opaque()
178 pk_ctx = (psa_key_id_t *) ctx->pk_ctx; in mbedtls_pk_setup_opaque()
179 *pk_ctx = key; in mbedtls_pk_setup_opaque()
201 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup_rsa_alt()
206 rsa_alt = (mbedtls_rsa_alt_context *) ctx->pk_ctx; in mbedtls_pk_setup_rsa_alt()
301 ret = ctx->pk_info->verify_rs_func( ctx->pk_ctx, in mbedtls_pk_verify_restartable()
316 return( ctx->pk_info->verify_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_verify_restartable()
423 ret = ctx->pk_info->sign_rs_func( ctx->pk_ctx, md_alg, in mbedtls_pk_sign_restartable()
440 return( ctx->pk_info->sign_func( ctx->pk_ctx, md_alg, in mbedtls_pk_sign_restartable()
478 return( ctx->pk_info->decrypt_func( ctx->pk_ctx, input, ilen, in mbedtls_pk_decrypt()
501 return( ctx->pk_info->encrypt_func( ctx->pk_ctx, input, ilen, in mbedtls_pk_encrypt()
539 return( prv->pk_info->check_pair_func( pub->pk_ctx, prv->pk_ctx, f_rng, p_rng ) ); in mbedtls_pk_check_pair()
552 return( ctx->pk_info->get_bitlen( ctx->pk_ctx ) ); in mbedtls_pk_get_bitlen()
567 ctx->pk_info->debug_func( ctx->pk_ctx, items ); in mbedtls_pk_debug()