Home
last modified time | relevance | path

Searched refs:mu (Results 1 – 11 of 11) 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
46 if ((err = mp_init(&mu)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
47 if ((err = mp_montgomery_normalization(mu, modulus)) != 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()
64 mp_clear(mu); in ltc_ecc_mulmod()
75 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
76 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
77 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
78 mp_clear(mu); in ltc_ecc_mulmod()
79 mu = NULL; 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
47 if ((err = mp_init(&mu)) != CRYPT_OK) { goto error; } in ltc_ecc_mulmod()
48 if ((err = mp_montgomery_normalization(mu, modulus)) != 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()
75 if (mp_cmp_d(mu, 1) == LTC_MP_EQ) { in ltc_ecc_mulmod()
78 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
79 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
80 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
82 mp_clear(mu); in ltc_ecc_mulmod()
83 mu = NULL; in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mul2add.c36 void *mp, *mu; in ltc_ecc_mul2add() local
90 if ((err = mp_init(&mu)) != CRYPT_OK) { in ltc_ecc_mul2add()
93 if ((err = mp_montgomery_normalization(mu, modulus)) != CRYPT_OK) { in ltc_ecc_mul2add()
98 …if ((err = mp_mulmod(A->x, mu, modulus, precomp[1]->x)) != CRYPT_OK) … in ltc_ecc_mul2add()
99 …if ((err = mp_mulmod(A->y, mu, modulus, precomp[1]->y)) != CRYPT_OK) … in ltc_ecc_mul2add()
100 …if ((err = mp_mulmod(A->z, mu, modulus, precomp[1]->z)) != CRYPT_OK) … in ltc_ecc_mul2add()
102 …if ((err = mp_mulmod(B->x, mu, modulus, precomp[1<<2]->x)) != CRYPT_OK) … in ltc_ecc_mul2add()
103 …if ((err = mp_mulmod(B->y, mu, modulus, precomp[1<<2]->y)) != CRYPT_OK) … in ltc_ecc_mul2add()
104 …if ((err = mp_mulmod(B->z, mu, modulus, precomp[1<<2]->z)) != CRYPT_OK) … in ltc_ecc_mul2add()
173 mp_clear(mu); 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()
167 …if ((err = mp_montgomery_normalization(mu, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
168 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_verify_hash_ex()
199 if (mu != NULL) mp_clear(mu); 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()
218 …if ((err = mp_montgomery_normalization(mu, m)) != CRYPT_OK) … in ecc_recover_key()
219 …if ((err = mp_mulmod(a, mu, m, ma)) != CRYPT_OK) … in ecc_recover_key()
250 if (mu != NULL) mp_clear(mu); in ecc_recover_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c687 if ((err = mp_init_copy(&fp_cache[idx].mu, mu)) != CRYPT_OK) { in s_build_lut()
1112 void *mp, *mu; in ltc_ecc_fp_mul2add() local
1115 mu = NULL; in ltc_ecc_fp_mul2add()
1206 if (mu != NULL) { in ltc_ecc_fp_mul2add()
1207 mp_clear(mu); in ltc_ecc_fp_mul2add()
1225 void *mp, *mu; in ltc_ecc_fp_mulmod() local
1228 mu = NULL; in ltc_ecc_fp_mulmod()
1284 mp_clear(mu); in ltc_ecc_fp_mulmod()
1331 void *mu = NULL; in ltc_ecc_fp_add_point() local
1373 if (mu != NULL) { in ltc_ecc_fp_add_point()
[all …]
/optee_os-3.20.0/core/mm/
A Dfile.c39 struct mutex mu; member
68 mutex_destroy(&f->mu); in file_free()
157 mutex_init(&f->mu); in file_get_by_tag()
183 assert(f->mu.state); in file_find_slice()
198 mutex_lock(&f->mu); in file_lock()
203 return mutex_trylock(&f->mu); in file_trylock()
208 mutex_unlock(&f->mu); in file_unlock()
/optee_os-3.20.0/lib/libutils/ext/
A Dmempool.c64 struct recursive_mutex mu; member
93 mutex_lock_recursive(&pool->mu); in get_pool()
103 if (mutex_get_recursive_lock_depth(&pool->mu) == 1) { in put_pool()
113 mutex_unlock_recursive(&pool->mu); in put_pool()
131 mutex_init_recursive(&pool->mu); in mempool_alloc_pool()
/optee_os-3.20.0/core/drivers/imx/
A Dsub.mk2 subdirs-$(CFG_IMX_MU) += mu
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c150 void *mu = 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()
216 ltc_res = mp_montgomery_normalization(mu, ltc_key.dp.prime); 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()
247 mp_clear_multi(rprime, sprime, t, mu, ma, eprime, R, NULL); in sm2_ltc_dsa_verify()
A Dsm2-kep.c229 void *mu = NULL; in sm2_kep_derive() local
235 ltc_res = mp_init_multi(&x1bar, &x2bar, &tA, &h, &htA, &mu, &ma, &one, in sm2_kep_derive()
290 ltc_res = mp_montgomery_normalization(mu, peer_key->dp.prime); in sm2_kep_derive()
294 ltc_res = mp_mulmod(peer_key->dp.A, mu, peer_key->dp.prime, ma); in sm2_kep_derive()
399 mp_clear_multi(x1bar, x2bar, tA, h, htA, mu, ma, one, NULL); in sm2_kep_derive()

Completed in 14 milliseconds