Lines Matching defs:sig_s
189 MPI sig_s;
215 sig->sig_s = mpi_read_raw_data(value, vlen);
216 if (!sig->sig_s)
326 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s)
341 mpi_cmp_ui(sig_s, 1) < 0 || mpi_cmp(sig_s, ec->n) > 0) {
346 mpi_addm(t, sig_r, sig_s, ec->n);
352 mpi_ec_mul_point(&sG, sig_s, ec->G, ec);
399 sig.sig_s = NULL;
410 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s);
415 mpi_free(sig.sig_s);