Searched refs:tA (Results 1 – 3 of 3) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_mul2add.c | 34 unsigned char *tA, *tB; in ltc_ecc_mul2add() local 47 tA = XCALLOC(1, ECC_BUF_SIZE); in ltc_ecc_mul2add() 48 if (tA == NULL) { in ltc_ecc_mul2add() 53 XFREE(tA); in ltc_ecc_mul2add() 69 mp_to_unsigned_bin(kA, (len - lenA) + tA); in ltc_ecc_mul2add() 123 bitbufA = tA[0]; in ltc_ecc_mul2add() 131 bitbufA = tA[x]; in ltc_ecc_mul2add() 182 zeromem(tA, ECC_BUF_SIZE); in ltc_ecc_mul2add() 185 XFREE(tA); in ltc_ecc_mul2add()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-kep.c | 298 mbedtls_mpi tA = { }; in crypto_acipher_sm2_kep_derive() local 318 mbedtls_mpi_init(&tA); in crypto_acipher_sm2_kep_derive() 350 mres = mbedtls_mpi_mul_mpi(&tA, &x1bar, (mbedtls_mpi *)my_eph_key->d); in crypto_acipher_sm2_kep_derive() 353 mres = mbedtls_mpi_mod_mpi(&tA, &tA, &grp.N); in crypto_acipher_sm2_kep_derive() 356 mres = mbedtls_mpi_add_mpi(&tA, &tA, (mbedtls_mpi *)my_key->d); in crypto_acipher_sm2_kep_derive() 359 mres = mbedtls_mpi_mod_mpi(&tA, &tA, &grp.N); in crypto_acipher_sm2_kep_derive() 404 mres = mbedtls_ecp_mul(&grp, &U, &tA, &U, mbd_rand, NULL); in crypto_acipher_sm2_kep_derive() 490 mbedtls_mpi_free(&tA); in crypto_acipher_sm2_kep_derive()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-kep.c | 225 void *tA = NULL; in sm2_kep_derive() local 235 ltc_res = mp_init_multi(&x1bar, &x2bar, &tA, &h, &htA, &mu, &ma, &one, in sm2_kep_derive() 261 ltc_res = mp_mulmod(x1bar, my_eph_key->k, n, tA); in sm2_kep_derive() 265 ltc_res = mp_addmod(tA, my_key->k, n, tA); in sm2_kep_derive() 311 ltc_res = mp_mul(h, tA, htA); in sm2_kep_derive() 399 mp_clear_multi(x1bar, x2bar, tA, h, htA, mu, ma, one, NULL); in sm2_kep_derive()
|
Completed in 5 milliseconds