Lines Matching refs:mpi_ec_ctx
66 static int __sm2_set_pub_key(struct mpi_ec_ctx *ec,
69 static int sm2_ec_ctx_init(struct mpi_ec_ctx *ec) in sm2_ec_ctx_init()
129 static void sm2_ec_ctx_deinit(struct mpi_ec_ctx *ec) in sm2_ec_ctx_deinit()
250 MPI_POINT point, struct mpi_ec_ctx *ec, in sm2_z_digest_update_point()
271 struct mpi_ec_ctx *ec; in sm2_compute_z_digest()
326 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify()
381 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_verify()
423 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_set_pub_key()
429 static int __sm2_set_pub_key(struct mpi_ec_ctx *ec, in __sm2_set_pub_key()
455 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_init_tfm()
462 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_exit_tfm()
478 .cra_ctxsize = sizeof(struct mpi_ec_ctx),