Home
last modified time | relevance | path

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

/Linux-v5.10/crypto/
Dsm2.c188 MPI sig_s; member
214 sig->sig_s = mpi_read_raw_data(value, vlen); in sm2_get_signature_s()
215 if (!sig->sig_s) in sm2_get_signature_s()
301 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify() argument
316 mpi_cmp_ui(sig_s, 1) < 0 || mpi_cmp(sig_s, ec->n) > 0) { in _sm2_verify()
321 mpi_addm(t, sig_r, sig_s, ec->n); in _sm2_verify()
327 mpi_ec_mul_point(&sG, sig_s, ec->G, ec); in _sm2_verify()
374 sig.sig_s = NULL; in sm2_verify()
385 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s); in sm2_verify()
390 mpi_free(sig.sig_s); in sm2_verify()
Dsm2signature.asn13 sig_s INTEGER ({ sm2_get_signature_s })