Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_copy (Results 1 – 18 of 18) sorted by relevance

/optee_os-3.20.0/lib/libutee/
A Dtee_api_arith_mpi.c261 MPI_CHECK(mbedtls_mpi_copy(&mpi_dest, &mpi_op)); in TEE_BigIntShiftRight()
273 MPI_CHECK(mbedtls_mpi_copy(&mpi_t, &mpi_op)); in TEE_BigIntShiftRight()
275 MPI_CHECK(mbedtls_mpi_copy(&mpi_dest, &mpi_t)); in TEE_BigIntShiftRight()
628 MPI_CHECK(mbedtls_mpi_copy(gcd, x_in)); in mpi_egcd()
632 MPI_CHECK(mbedtls_mpi_copy(&x, x_in)); in mpi_egcd()
633 MPI_CHECK(mbedtls_mpi_copy(&y, y_in)); in mpi_egcd()
642 MPI_CHECK(mbedtls_mpi_copy(&u, &x)); in mpi_egcd()
643 MPI_CHECK(mbedtls_mpi_copy(gcd, &y)); in mpi_egcd()
682 MPI_CHECK(mbedtls_mpi_copy(a, &C)); in mpi_egcd()
683 MPI_CHECK(mbedtls_mpi_copy(b, &D)); in mpi_egcd()
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Drsa.c944 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &I, &T ) ); in mbedtls_rsa_private()
2325 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->N, &src->N ) ); in mbedtls_rsa_copy()
2326 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->E, &src->E ) ); in mbedtls_rsa_copy()
2328 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->D, &src->D ) ); in mbedtls_rsa_copy()
2329 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->P, &src->P ) ); in mbedtls_rsa_copy()
2330 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->Q, &src->Q ) ); in mbedtls_rsa_copy()
2333 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->DP, &src->DP ) ); in mbedtls_rsa_copy()
2334 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->DQ, &src->DQ ) ); in mbedtls_rsa_copy()
2335 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->QP, &src->QP ) ); in mbedtls_rsa_copy()
2336 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->RP, &src->RP ) ); in mbedtls_rsa_copy()
[all …]
A Dbignum.c1584 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, A ) ); in mbedtls_mpi_mul_int()
1723 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &X, A ) ); in mbedtls_mpi_div_mpi()
1724 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &Y, B ) ); in mbedtls_mpi_div_mpi()
2185 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, &RR ) ); in mbedtls_mpi_exp_mod()
2333 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TA, A ) ); in mbedtls_mpi_gcd()
2334 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) ); in mbedtls_mpi_gcd()
2345 ret = mbedtls_mpi_copy( G, A ); in mbedtls_mpi_gcd()
2423 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( G, &TB ) ); in mbedtls_mpi_gcd()
2592 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, N ) ); in mbedtls_mpi_inv_mod()
2593 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TV, N ) ); in mbedtls_mpi_inv_mod()
[all …]
A Ddhm.c270 if( ( ret = mbedtls_mpi_copy( &ctx->P, P ) ) != 0 || in mbedtls_dhm_set_group()
271 ( ret = mbedtls_mpi_copy( &ctx->G, G ) ) != 0 ) in mbedtls_dhm_set_group()
350 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &ctx->pX, &ctx->X ) ); in dhm_update_blinding()
427 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &GYb, &ctx->GY ) ); in mbedtls_dhm_calc_secret()
A Decp.c787 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->X, &Q->X ) ); in mbedtls_ecp_copy()
1574 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->X, &T ) ); in ecp_double_jac()
1575 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Y, &S ) ); in ecp_double_jac()
1576 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Z, &U ) ); in ecp_double_jac()
1665 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &T1, &T3 ) ); in ecp_add_mixed()
1675 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->X, &X ) ); in ecp_add_mixed()
1676 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Y, &Y ) ); in ecp_add_mixed()
1677 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Z, &Z ) ); in ecp_add_mixed()
2128 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &M, m ) ); in ecp_comb_recode_scalar()
2591 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &PX, &P->X ) ); in ecp_mul_mxz()
[all …]
A Decdh.c133 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( z, &P.X ) ); in ecdh_compute_shared_restartable()
460 ( ret = mbedtls_mpi_copy( &ctx->d, &key->d ) ) != 0 ) in ecdh_get_params_internal()
A Dpkparse.c796 ( ret = mbedtls_mpi_copy( &rsa->DP, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
801 ( ret = mbedtls_mpi_copy( &rsa->DQ, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
806 ( ret = mbedtls_mpi_copy( &rsa->QP, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
A Decdsa.c374 mbedtls_mpi_copy( r, pr ); in ecdsa_sign_restartable()
939 ( ret = mbedtls_mpi_copy( &ctx->d, &key->d ) ) != 0 || in mbedtls_ecdsa_from_keypair()
A Dx509write_crt.c103 if( ( ret = mbedtls_mpi_copy( &ctx->serial, serial ) ) != 0 ) in mbedtls_x509write_crt_set_serial()
A Dssl_tls.c4684 if( ( ret = mbedtls_mpi_copy( &conf->dhm_P, &dhm_ctx->P ) ) != 0 || in mbedtls_ssl_conf_dh_param_ctx()
4685 ( ret = mbedtls_mpi_copy( &conf->dhm_G, &dhm_ctx->G ) ) != 0 ) in mbedtls_ssl_conf_dh_param_ctx()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dmpi_desc.c88 if (mbedtls_mpi_copy(b, a)) in neg()
96 if (mbedtls_mpi_copy(b, a)) in copy()
120 if (mbedtls_mpi_copy(a, &bn)) in set_int()
354 if (mbedtls_mpi_copy(b, a)) in div_2()
541 if (mbedtls_mpi_copy(&A, a)) in montgomery_reduce()
550 if (mbedtls_mpi_copy(a, &A)) in montgomery_reduce()
586 res = mbedtls_mpi_copy(d, &dest); in exptmod()
746 rc = mbedtls_mpi_copy((mbedtls_mpi *)to, (const mbedtls_mpi *)from); in crypto_bignum_copy()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-kep.c365 mbedtls_mpi_copy(&RB.X, (mbedtls_mpi *)peer_eph_key->x); in crypto_acipher_sm2_kep_derive()
366 mbedtls_mpi_copy(&RB.Y, (mbedtls_mpi *)peer_eph_key->y); in crypto_acipher_sm2_kep_derive()
386 mres = mbedtls_mpi_copy(&PB.X, (mbedtls_mpi *)peer_key->x); in crypto_acipher_sm2_kep_derive()
389 mres = mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)peer_key->y); in crypto_acipher_sm2_kep_derive()
A Dsm2-dsa.c227 mres = mbedtls_mpi_copy(&PA.X, (mbedtls_mpi *)key->x); in sm2_mbedtls_dsa_verify()
230 mres = mbedtls_mpi_copy(&PA.Y, (mbedtls_mpi *)key->y); in sm2_mbedtls_dsa_verify()
A Dbignum.c67 if (mbedtls_mpi_copy((mbedtls_mpi *)to, (const mbedtls_mpi *)from)) in crypto_bignum_copy()
A Dsm2-pke.c353 mbedtls_mpi_copy(&PB.X, (mbedtls_mpi *)key->x); in sm2_mbedtls_pke_encrypt()
354 mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)key->y); in sm2_mbedtls_pke_encrypt()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h268 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
A Dcompat-1.3.h2055 #define mpi_copy mbedtls_mpi_copy
/optee_os-3.20.0/lib/libmbedtls/mbedtls/
A DChangeLog1994 * Optimize unnecessary zeroing in mbedtls_mpi_copy. Based on a contribution

Completed in 107 milliseconds