Home
last modified time | relevance | path

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

/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-dsa.c156 mbedtls_mpi rprime = { }; in sm2_mbedtls_dsa_verify() local
168 mbedtls_mpi_init(&rprime); in sm2_mbedtls_dsa_verify()
184 mres = mbedtls_mpi_read_binary(&rprime, sig, 32); in sm2_mbedtls_dsa_verify()
193 if (mbedtls_mpi_cmp_int(&rprime, 1) < 0 || in sm2_mbedtls_dsa_verify()
194 mbedtls_mpi_cmp_mpi(&rprime, &grp.N) >= 0) { in sm2_mbedtls_dsa_verify()
214 mres = mbedtls_mpi_add_mpi(&t, &rprime, &sprime); in sm2_mbedtls_dsa_verify()
252 if (mbedtls_mpi_cmp_mpi(&R, &rprime)) { in sm2_mbedtls_dsa_verify()
261 mbedtls_mpi_free(&rprime); in sm2_mbedtls_dsa_verify()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c146 void *rprime = 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()
164 mp_read_unsigned_bin(rprime, (unsigned char *)sig, 32); in sm2_ltc_dsa_verify()
173 if (mp_cmp_d(rprime, 1) == LTC_MP_LT || in sm2_ltc_dsa_verify()
174 mp_cmp(rprime, 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()
241 if (mp_cmp(R, rprime) != LTC_MP_EQ) in sm2_ltc_dsa_verify()
247 mp_clear_multi(rprime, sprime, t, mu, ma, eprime, R, NULL); in sm2_ltc_dsa_verify()

Completed in 2 milliseconds