Home
last modified time | relevance | path

Searched refs:x2y2p (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Dsm2-pke.c118 mbedtls_ecp_point x2y2p = { }; in sm2_mbedtls_pke_decrypt() local
137 mbedtls_ecp_point_init(&x2y2p); in sm2_mbedtls_pke_decrypt()
160 mres = mbedtls_ecp_mul(&grp, &x2y2p, (mbedtls_mpi *)key->d, &C1, in sm2_mbedtls_pke_decrypt()
167 if (mbedtls_mpi_size(&x2y2p.X) > SM2_INT_SIZE_BYTES || in sm2_mbedtls_pke_decrypt()
168 mbedtls_mpi_size(&x2y2p.Y) > SM2_INT_SIZE_BYTES) { in sm2_mbedtls_pke_decrypt()
173 mres = mbedtls_mpi_write_binary(&x2y2p.X, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
178 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
262 mbedtls_ecp_point_free(&x2y2p); in sm2_mbedtls_pke_decrypt()
308 mbedtls_ecp_point x2y2p = { }; in sm2_mbedtls_pke_encrypt() local
321 mbedtls_ecp_point_init(&x2y2p); in sm2_mbedtls_pke_encrypt()
[all …]
/optee_os/core/lib/libtomcrypt/
H A Dsm2-pke.c118 ecc_point *x2y2p = NULL; in sm2_ltc_pke_decrypt() local
195 x2y2p = ltc_ecc_new_point(); in sm2_ltc_pke_decrypt()
196 if (!x2y2p) { in sm2_ltc_pke_decrypt()
201 ltc_res = ltc_ecc_mulmod(ltc_key.k, C1, x2y2p, ltc_key.dp.A, in sm2_ltc_pke_decrypt()
208 if (mp_unsigned_bin_size(x2y2p->x) > SM2_INT_SIZE_BYTES || in sm2_ltc_pke_decrypt()
209 mp_unsigned_bin_size(x2y2p->y) > SM2_INT_SIZE_BYTES) { in sm2_ltc_pke_decrypt()
214 mp_to_unsigned_bin2(x2y2p->x, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
215 mp_to_unsigned_bin2(x2y2p->y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_decrypt()
294 ltc_ecc_del_point(x2y2p); in sm2_ltc_pke_decrypt()
337 ecc_point *x2y2p = NULL; in sm2_ltc_pke_encrypt() local
[all …]