Home
last modified time | relevance | path

Searched refs:ma (Results 1 – 14 of 14) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mulmod_timing.c29 void *mp = NULL, *mu = NULL, *ma = NULL, *a_plus3 = NULL; in ltc_ecc_mulmod() local
53 if ((err = mp_init(&ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
54 if ((err = mp_mulmod(a, mu, modulus, ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
85 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
111 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
112 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
120 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
124 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[i^1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
125 if ((err = ltc_mp.ecc_ptdbl(M[i], M[i], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mulmod.c30 void *mp = NULL, *mu = NULL, *ma = NULL, *a_plus3 = NULL; in ltc_ecc_mulmod() local
54 if ((err = mp_init(&ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
55 if ((err = mp_mulmod(a, mu, modulus, ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
87 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
88 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
89 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
93 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
127 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
146 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
164 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mul2add.c28 void *ma, in ltc_ecc_mul2add() argument
107 …if ((err = ltc_mp.ecc_ptdbl(precomp[1], precomp[2], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
108 …if ((err = ltc_mp.ecc_ptadd(precomp[1], precomp[2], precomp[3], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
111 …if ((err = ltc_mp.ecc_ptdbl(precomp[1<<2], precomp[2<<2], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
112 …if ((err = ltc_mp.ecc_ptadd(precomp[1<<2], precomp[2<<2], precomp[3<<2], ma, modulus, mp)) != CRYP… in ltc_ecc_mul2add()
117 …if ((err = ltc_mp.ecc_ptadd(precomp[x], precomp[(y<<2)], precomp[x+(y<<2)], ma, modulus, mp)) != C… in ltc_ecc_mul2add()
151 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
152 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
163 …if ((err = ltc_mp.ecc_ptadd(C, precomp[nA + (nB<<2)], C, ma, modulus, mp)) != CRYPT_OK) { goto ERR… in ltc_ecc_mul2add()
A Decc_verify_hash.c30 void *mu = NULL, *ma = NULL; in ecc_verify_hash_ex() local
166 …if ((err = mp_init_multi(&mu, &ma, LTC_NULL)) != CRYPT_OK) … in ecc_verify_hash_ex()
168 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_verify_hash_ex()
177 …if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, ma, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
183 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
200 if (ma != NULL) mp_clear(ma); in ecc_verify_hash_ex()
A Decc_recover_key.c33 void *mu = NULL, *ma = NULL; in ecc_recover_key() local
217 …if ((err = mp_init_multi(&mu, &ma, LTC_NULL)) != CRYPT_OK) … in ecc_recover_key()
219 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_recover_key()
224 …if ((err = ltc_mp.ecc_mul2add(mR, v1, mG, v2, mQ, ma, m)) != CRYPT_OK) … in ecc_recover_key()
227 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_recover_key()
249 if (ma != NULL) mp_clear(ma); in ecc_recover_key()
A Dltc_ecc_projective_dbl_point.c40 int ltc_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, void *m… in ltc_ecc_projective_dbl_point() argument
77 if (ma == NULL) { /* special case for curves with a == -3 (10% faster than general case) */ in ltc_ecc_projective_dbl_point()
107 if ((err = mp_mul(t2, ma, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
A Dltc_ecc_projective_add_point.c23 int ltc_ecc_projective_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, vo… in ltc_ecc_projective_add_point() argument
56 return ltc_ecc_projective_dbl_point(P, R, ma, modulus, mp); in ltc_ecc_projective_add_point()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c151 void *ma = NULL; in sm2_ltc_dsa_verify() local
159 ltc_res = mp_init_multi(&rprime, &sprime, &t, &mu, &ma, &eprime, &R, in sm2_ltc_dsa_verify()
221 ltc_res = mp_mulmod(ltc_key.dp.A, mu, ltc_key.dp.prime, ma); in sm2_ltc_dsa_verify()
227 x1y1p, ma, ltc_key.dp.prime); in sm2_ltc_dsa_verify()
247 mp_clear_multi(rprime, sprime, t, mu, ma, eprime, R, NULL); in sm2_ltc_dsa_verify()
A Dsm2-kep.c230 void *ma = NULL; in sm2_kep_derive() local
235 ltc_res = mp_init_multi(&x1bar, &x2bar, &tA, &h, &htA, &mu, &ma, &one, in sm2_kep_derive()
294 ltc_res = mp_mulmod(peer_key->dp.A, mu, peer_key->dp.prime, ma); in sm2_kep_derive()
303 x2bar, U, ma, peer_key->dp.prime); in sm2_kep_derive()
399 mp_clear_multi(x1bar, x2bar, tA, h, htA, mu, ma, one, NULL); in sm2_kep_derive()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h403 void *ma,
417 void *ma,
446 void *ma,
A Dtomcrypt_private.h306 int ltc_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, void *m…
309 int ltc_ecc_projective_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, vo…
334 void *ma,
342 void *ma,
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decp.c409 ctx->ma = NULL; in mbedtls_ecp_restart_init()
423 ecp_restart_ma_free( ctx->ma ); in mbedtls_ecp_restart_free()
424 mbedtls_free( ctx->ma ); in mbedtls_ecp_restart_free()
2855 ECP_RS_ENTER( ma ); in mbedtls_ecp_muladd_restartable()
2858 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
2861 pmP = &rs_ctx->ma->mP; in mbedtls_ecp_muladd_restartable()
2862 pR = &rs_ctx->ma->R; in mbedtls_ecp_muladd_restartable()
2877 rs_ctx->ma->state = ecp_rsma_mul2; in mbedtls_ecp_muladd_restartable()
2890 rs_ctx->ma->state = ecp_rsma_add; in mbedtls_ecp_muladd_restartable()
2898 rs_ctx->ma->state = ecp_rsma_norm; in mbedtls_ecp_muladd_restartable()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dtfm_desc.c423 static int tfm_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, … in tfm_ecc_projective_dbl_point() argument
466 if (ma == NULL) { /* special case for curves with a == -3 (10% faster than general case) */ in tfm_ecc_projective_dbl_point()
496 fp_mul(&t2, ma, &t1); in tfm_ecc_projective_dbl_point()
578 …tive_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, void *modulus, void… in tfm_ecc_projective_add_point() argument
621 return tfm_ecc_projective_dbl_point(P, R, ma, modulus, Mp); in tfm_ecc_projective_add_point()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Decp.h388 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member

Completed in 23 milliseconds