Searched refs:sig_r (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/crypto/ |
H A D | sm2.c | 188 MPI sig_r; member 200 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r() 201 if (!sig->sig_r) in sm2_get_signature_r() 326 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify() argument 340 if (mpi_cmp_ui(sig_r, 1) < 0 || mpi_cmp(sig_r, ec->n) > 0 || in _sm2_verify() 346 mpi_addm(t, sig_r, sig_s, ec->n); in _sm2_verify() 363 if (mpi_cmp(t, sig_r)) in _sm2_verify() 398 sig.sig_r = NULL; in sm2_verify() 410 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s); in sm2_verify() 414 mpi_free(sig.sig_r); in sm2_verify()
|
H A D | sm2signature.asn1 | 2 sig_r INTEGER ({ sm2_get_signature_r }),
|