Home
last modified time | relevance | path

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

/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-dsa.c157 mbedtls_mpi sprime = { }; in sm2_mbedtls_dsa_verify() local
169 mbedtls_mpi_init(&sprime); in sm2_mbedtls_dsa_verify()
187 mres = mbedtls_mpi_read_binary(&sprime, sig + 32, 32); in sm2_mbedtls_dsa_verify()
201 if (mbedtls_mpi_cmp_int(&sprime, 1) < 0 || in sm2_mbedtls_dsa_verify()
202 mbedtls_mpi_cmp_mpi(&sprime, &grp.N) >= 0) { in sm2_mbedtls_dsa_verify()
214 mres = mbedtls_mpi_add_mpi(&t, &rprime, &sprime); in sm2_mbedtls_dsa_verify()
237 mres = mbedtls_ecp_muladd(&grp, &x1y1p, &sprime, &grp.G, &t, &PA); in sm2_mbedtls_dsa_verify()
262 mbedtls_mpi_free(&sprime); in sm2_mbedtls_dsa_verify()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c147 void *sprime = 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()
165 mp_read_unsigned_bin(sprime, (unsigned char *)sig + 32, 32); in sm2_ltc_dsa_verify()
181 if (mp_cmp_d(sprime, 1) == LTC_MP_LT || in sm2_ltc_dsa_verify()
182 mp_cmp(sprime, ltc_key.dp.order) != LTC_MP_LT) { in sm2_ltc_dsa_verify()
194 ltc_res = mp_addmod(rprime, sprime, ltc_key.dp.order, t); in sm2_ltc_dsa_verify()
226 ltc_res = ltc_ecc_mul2add(&ltc_key.dp.base, sprime, &ltc_key.pubkey, t, in sm2_ltc_dsa_verify()
247 mp_clear_multi(rprime, sprime, t, mu, ma, eprime, R, NULL); in sm2_ltc_dsa_verify()

Completed in 3 milliseconds