Lines Matching refs:mpi_ec_ctx
63 static int sm2_ec_ctx_init(struct mpi_ec_ctx *ec) in sm2_ec_ctx_init()
115 static void sm2_ec_ctx_deinit(struct mpi_ec_ctx *ec) in sm2_ec_ctx_deinit()
122 static int sm2_ec_ctx_reset(struct mpi_ec_ctx *ec) in sm2_ec_ctx_reset()
248 MPI_POINT point, struct mpi_ec_ctx *ec, unsigned int pbytes) in sm2_z_digest_update_point()
270 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_compute_z_digest()
301 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify()
356 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_verify()
398 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_set_pub_key()
438 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_init_tfm()
445 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_exit_tfm()
461 .cra_ctxsize = sizeof(struct mpi_ec_ctx),