Lines Matching refs:S
117 ecc_point *S = NULL; in sm2_ltc_pke_decrypt() local
157 S = ltc_ecc_new_point(); in sm2_ltc_pke_decrypt()
158 if (!S) { in sm2_ltc_pke_decrypt()
175 ltc_res = ltc_ecc_mulmod(h, C1, S, ltc_key.dp.A, in sm2_ltc_pke_decrypt()
182 ltc_res = ltc_ecc_is_point_at_infinity(S, ltc_key.dp.prime, in sm2_ltc_pke_decrypt()
295 ltc_ecc_del_point(S); in sm2_ltc_pke_decrypt()
339 ecc_point *S = NULL; in sm2_ltc_pke_encrypt() local
385 S = ltc_ecc_new_point(); in sm2_ltc_pke_encrypt()
386 if (!S) { in sm2_ltc_pke_encrypt()
397 ltc_res = ltc_ecc_mulmod(h, <c_key.pubkey, S, ltc_key.dp.A, in sm2_ltc_pke_encrypt()
404 ltc_res = ltc_ecc_is_point_at_infinity(S, ltc_key.dp.prime, in sm2_ltc_pke_encrypt()
510 ltc_ecc_del_point(S); in sm2_ltc_pke_encrypt()