Lines Matching defs:sig_s
183 MPI sig_s;
209 sig->sig_s = mpi_read_raw_data(value, vlen);
210 if (!sig->sig_s)
296 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s)
311 mpi_cmp_ui(sig_s, 1) < 0 || mpi_cmp(sig_s, ec->n) > 0) {
316 mpi_addm(t, sig_r, sig_s, ec->n);
322 mpi_ec_mul_point(&sG, sig_s, ec->G, ec);
369 sig.sig_s = NULL;
380 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s);
385 mpi_free(sig.sig_s);