Home
last modified time | relevance | path

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

/crypto/
Dsm2.c182 MPI sig_r; member
194 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r()
195 if (!sig->sig_r) in sm2_get_signature_r()
296 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify() argument
310 if (mpi_cmp_ui(sig_r, 1) < 0 || mpi_cmp(sig_r, ec->n) > 0 || in _sm2_verify()
316 mpi_addm(t, sig_r, sig_s, ec->n); in _sm2_verify()
333 if (mpi_cmp(t, sig_r)) in _sm2_verify()
368 sig.sig_r = NULL; in sm2_verify()
380 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s); in sm2_verify()
384 mpi_free(sig.sig_r); in sm2_verify()
Dsm2signature.asn12 sig_r INTEGER ({ sm2_get_signature_r }),