Home
last modified time | relevance | path

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

/Linux-v5.10/crypto/
Dsm2.c187 MPI sig_r; member
199 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r()
200 if (!sig->sig_r) in sm2_get_signature_r()
301 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify() argument
315 if (mpi_cmp_ui(sig_r, 1) < 0 || mpi_cmp(sig_r, ec->n) > 0 || in _sm2_verify()
321 mpi_addm(t, sig_r, sig_s, ec->n); in _sm2_verify()
338 if (mpi_cmp(t, sig_r)) in _sm2_verify()
373 sig.sig_r = NULL; in sm2_verify()
385 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s); in sm2_verify()
389 mpi_free(sig.sig_r); in sm2_verify()
Dsm2signature.asn12 sig_r INTEGER ({ sm2_get_signature_r }),