Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mulmod_timing.c36 void *mp = NULL, *mu = NULL, *ma = NULL, *a_plus3 = NULL; in ltc_ecc_mulmod() local
60 if ((err = mp_init(&ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
61 if ((err = mp_mulmod(a, mu, modulus, ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
92 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
118 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
126 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
127 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
131 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[i^1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
132 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.c37 void *mp = NULL, *mu = NULL, *ma = NULL, *a_plus3 = NULL; in ltc_ecc_mulmod() local
61 if ((err = mp_init(&ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
62 if ((err = mp_mulmod(a, mu, modulus, ma)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
94 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
95 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
96 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
100 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
134 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
153 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
171 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mul2add.c35 void *ma, in ltc_ecc_mul2add() argument
114 …if ((err = ltc_mp.ecc_ptdbl(precomp[1], precomp[2], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
115 …if ((err = ltc_mp.ecc_ptadd(precomp[1], precomp[2], precomp[3], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
118 …if ((err = ltc_mp.ecc_ptdbl(precomp[1<<2], precomp[2<<2], ma, modulus, mp)) != CRYPT_OK) … in ltc_ecc_mul2add()
119 …if ((err = ltc_mp.ecc_ptadd(precomp[1<<2], precomp[2<<2], precomp[3<<2], ma, modulus, mp)) != CRYP… in ltc_ecc_mul2add()
124 …if ((err = ltc_mp.ecc_ptadd(precomp[x], precomp[(y<<2)], precomp[x+(y<<2)], ma, modulus, mp)) != C… in ltc_ecc_mul2add()
158 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
159 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
170 …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.c37 void *mu = NULL, *ma = NULL; in ecc_verify_hash_ex() local
172 …if ((err = mp_init_multi(&mu, &ma, NULL)) != CRYPT_OK) … in ecc_verify_hash_ex()
174 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_verify_hash_ex()
183 …if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, ma, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
189 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
206 if (ma != NULL) mp_clear(ma); in ecc_verify_hash_ex()
A Decc_recover_key.c40 void *mu = NULL, *ma = NULL; in ecc_recover_key() local
223 …if ((err = mp_init_multi(&mu, &ma, NULL)) != CRYPT_OK) … in ecc_recover_key()
225 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_recover_key()
230 …if ((err = ltc_mp.ecc_mul2add(mR, v1, mG, v2, mQ, ma, m)) != CRYPT_OK) … in ecc_recover_key()
233 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_recover_key()
255 if (ma != NULL) mp_clear(ma); in ecc_recover_key()
A Dltc_ecc_projective_dbl_point.c47 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
84 if (ma == NULL) { /* special case for curves with a == -3 (10% faster than general case) */ in ltc_ecc_projective_dbl_point()
114 if ((err = mp_mul(t2, ma, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
A Dltc_ecc_projective_add_point.c30 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
63 return ltc_ecc_projective_dbl_point(P, R, ma, modulus, mp); in ltc_ecc_projective_add_point()
/optee_os/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/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h410 void *ma,
424 void *ma,
453 void *ma,
A Dtomcrypt_private.h278 int ltc_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, void *m…
281 int ltc_ecc_projective_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, vo…
306 void *ma,
314 void *ma,
/optee_os/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()
2856 ECP_RS_ENTER( ma ); in mbedtls_ecp_muladd_restartable()
2859 if( rs_ctx != NULL && rs_ctx->ma != NULL ) in mbedtls_ecp_muladd_restartable()
2862 pmP = &rs_ctx->ma->mP; in mbedtls_ecp_muladd_restartable()
2863 pR = &rs_ctx->ma->R; in mbedtls_ecp_muladd_restartable()
2878 rs_ctx->ma->state = ecp_rsma_mul2; in mbedtls_ecp_muladd_restartable()
2891 rs_ctx->ma->state = ecp_rsma_add; in mbedtls_ecp_muladd_restartable()
2899 rs_ctx->ma->state = ecp_rsma_norm; in mbedtls_ecp_muladd_restartable()
[all …]
/optee_os/core/lib/libtomcrypt/src/math/
A Dtfm_desc.c430 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
473 if (ma == NULL) { /* special case for curves with a == -3 (10% faster than general case) */ in tfm_ecc_projective_dbl_point()
503 fp_mul(&t2, ma, &t1); in tfm_ecc_projective_dbl_point()
585 …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
628 return tfm_ecc_projective_dbl_point(P, R, ma, modulus, Mp); in tfm_ecc_projective_add_point()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Decp.h378 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Decp.h378 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Decp.h378 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Decp.h378 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Decp.h378 mbedtls_ecp_restart_muladd_ctx *ma; /*!< ecp_muladd() sub-context */ member

Completed in 44 milliseconds