Lines Matching refs:x2y2p
117 ecc_point *x2y2p = NULL; in sm2_ltc_pke_decrypt() local
194 x2y2p = ltc_ecc_new_point(); in sm2_ltc_pke_decrypt()
195 if (!x2y2p) { in sm2_ltc_pke_decrypt()
200 ltc_res = ltc_ecc_mulmod(ltc_key.k, C1, x2y2p, ltc_key.dp.A, in sm2_ltc_pke_decrypt()
207 if (mp_unsigned_bin_size(x2y2p->x) > SM2_INT_SIZE_BYTES || in sm2_ltc_pke_decrypt()
208 mp_unsigned_bin_size(x2y2p->y) > SM2_INT_SIZE_BYTES) { in sm2_ltc_pke_decrypt()
213 mp_to_unsigned_bin2(x2y2p->x, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
214 mp_to_unsigned_bin2(x2y2p->y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_decrypt()
293 ltc_ecc_del_point(x2y2p); in sm2_ltc_pke_decrypt()
336 ecc_point *x2y2p = NULL; in sm2_ltc_pke_encrypt() local
420 x2y2p = ltc_ecc_new_point(); in sm2_ltc_pke_encrypt()
421 if (!x2y2p) { in sm2_ltc_pke_encrypt()
426 ltc_res = ltc_ecc_mulmod(k, <c_key.pubkey, x2y2p, ltc_key.dp.A, in sm2_ltc_pke_encrypt()
433 if (mp_unsigned_bin_size(x2y2p->x) > SM2_INT_SIZE_BYTES || in sm2_ltc_pke_encrypt()
434 mp_unsigned_bin_size(x2y2p->y) > SM2_INT_SIZE_BYTES) { in sm2_ltc_pke_encrypt()
439 mp_to_unsigned_bin2(x2y2p->x, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_encrypt()
440 mp_to_unsigned_bin2(x2y2p->y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_encrypt()
508 ltc_ecc_del_point(x2y2p); in sm2_ltc_pke_encrypt()