Home
last modified time | relevance | path

Searched refs:mp_copy (Results 1 – 11 of 11) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_set_curve_internal.c55 if ((err = mp_copy(srckey->dp.prime, key->dp.prime )) != CRYPT_OK) { goto error; } in ecc_copy_curve()
56 if ((err = mp_copy(srckey->dp.order, key->dp.order )) != CRYPT_OK) { goto error; } in ecc_copy_curve()
57 if ((err = mp_copy(srckey->dp.A, key->dp.A )) != CRYPT_OK) { goto error; } in ecc_copy_curve()
58 if ((err = mp_copy(srckey->dp.B, key->dp.B )) != CRYPT_OK) { goto error; } in ecc_copy_curve()
99 if ((err = mp_copy(prime, key->dp.prime )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
100 if ((err = mp_copy(order, key->dp.order )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
101 if ((err = mp_copy(a, key->dp.A )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
102 if ((err = mp_copy(b, key->dp.B )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
103 if ((err = mp_copy(gx, key->dp.base.x)) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
104 if ((err = mp_copy(gy, key->dp.base.y)) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis()
A Dltc_ecc_projective_add_point.c66 if ((err = mp_copy(P->x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
67 if ((err = mp_copy(P->y, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
68 if ((err = mp_copy(P->z, z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
187 if ((err = mp_copy(x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
188 if ((err = mp_copy(y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
189 if ((err = mp_copy(z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
A Decc_sign_hash.c84 if (mp_copy(pubkey.pubkey.x, s) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex()
A Decc_recover_key.c185 …if ((err = mp_copy(x, mR->x)) != CRYPT_OK) … in ecc_recover_key()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Ddsa.c75 mp_copy(key->g, ltc_tmp_key.g); in crypto_acipher_gen_dsa_key()
76 mp_copy(key->p, ltc_tmp_key.p); in crypto_acipher_gen_dsa_key()
77 mp_copy(key->q, ltc_tmp_key.q); in crypto_acipher_gen_dsa_key()
86 mp_copy(ltc_tmp_key.y, key->y); in crypto_acipher_gen_dsa_key()
87 mp_copy(ltc_tmp_key.x, key->x); in crypto_acipher_gen_dsa_key()
A Ddh.c53 mp_copy(key->g, ltc_tmp_key.base); in crypto_acipher_gen_dh_key()
54 mp_copy(key->p, ltc_tmp_key.prime); in crypto_acipher_gen_dh_key()
A Decc.c211 mp_copy(key->d, ltc_key->k); in ecc_populate_ltc_private_key()
212 mp_copy(key->x, ltc_key->pubkey.x); in ecc_populate_ltc_private_key()
213 mp_copy(key->y, ltc_key->pubkey.y); in ecc_populate_ltc_private_key()
243 mp_copy(key->x, ltc_key->pubkey.x); in ecc_populate_ltc_public_key()
244 mp_copy(key->y, ltc_key->pubkey.y); in ecc_populate_ltc_public_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_make_key.c55 …if ((err = mp_copy( e, key->e)) != CRYPT_OK) { goto errkey; } /* key->e = … in s_rsa_make_key()
67 if ((err = mp_copy( p, key->p)) != CRYPT_OK) { goto errkey; } in s_rsa_make_key()
68 if ((err = mp_copy( q, key->q)) != CRYPT_OK) { goto errkey; } in s_rsa_make_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c634 if ((mp_copy(g->x, fp_cache[idx].g->x) != CRYPT_OK) || in s_add_entry()
635 (mp_copy(g->y, fp_cache[idx].g->y) != CRYPT_OK) || in s_add_entry()
636 (mp_copy(g->z, fp_cache[idx].g->z) != CRYPT_OK)) { in s_add_entry()
876 if ((mp_copy(fp_cache[idx].LUT[z]->x, R->x) != CRYPT_OK) || in s_accel_fp_mul()
877 (mp_copy(fp_cache[idx].LUT[z]->y, R->y) != CRYPT_OK) || in s_accel_fp_mul()
878 (mp_copy(fp_cache[idx].mu, R->z) != CRYPT_OK)) { return CRYPT_MEM; } in s_accel_fp_mul()
1072 if ((mp_copy(fp_cache[idx1].LUT[zA]->x, R->x) != CRYPT_OK) || in ss_accel_fp_mul2add()
1073 (mp_copy(fp_cache[idx1].LUT[zA]->y, R->y) != CRYPT_OK) || in ss_accel_fp_mul2add()
1074 (mp_copy(fp_cache[idx1].mu, R->z) != CRYPT_OK)) { return CRYPT_MEM; } in ss_accel_fp_mul2add()
1084 if ((mp_copy(fp_cache[idx2].LUT[zB]->x, R->x) != CRYPT_OK) || in ss_accel_fp_mul2add()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dltm_desc.c89 return mpi_to_ltc_error(mp_copy(a, b)); in copy()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h176 #define mp_copy(a, b) ltc_mp.copy(a, b) macro

Completed in 13 milliseconds