Home
last modified time | relevance | path

Searched refs:mpi_ec_ctx (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dmpi.h196 struct mpi_ec_ctx { struct
241 void (*addm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx); argument
242 void (*subm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec); argument
243 void (*mulm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx); argument
244 void (*pow2)(MPI w, const MPI b, struct mpi_ec_ctx *ctx); argument
245 void (*mul2)(MPI w, MPI u, struct mpi_ec_ctx *ctx); argument
248 void mpi_ec_init(struct mpi_ec_ctx *ctx, enum gcry_mpi_ec_models model,
251 void mpi_ec_deinit(struct mpi_ec_ctx *ctx);
256 int mpi_ec_get_affine(MPI x, MPI y, MPI_POINT point, struct mpi_ec_ctx *ctx);
259 struct mpi_ec_ctx *ctx);
[all …]
/kernel/linux/linux-5.10/lib/mpi/
Dec.c88 static void point_resize(MPI_POINT p, struct mpi_ec_ctx *ctx) in point_resize()
104 struct mpi_ec_ctx *ctx) in point_swap_cond()
114 static void ec_mod(MPI w, struct mpi_ec_ctx *ec) in ec_mod()
122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm()
128 static void ec_subm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec) in ec_subm()
136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm()
143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2()
150 struct mpi_ec_ctx *ctx) in ec_powm()
160 static void ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2()
171 static void ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow3()
[all …]
/kernel/linux/linux-5.10/crypto/
Dsm2.c63 static int sm2_ec_ctx_init(struct mpi_ec_ctx *ec) in sm2_ec_ctx_init()
123 static void sm2_ec_ctx_deinit(struct mpi_ec_ctx *ec) in sm2_ec_ctx_deinit()
243 MPI_POINT point, struct mpi_ec_ctx *ec, unsigned int pbytes) in sm2_z_digest_update_point()
265 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_compute_z_digest()
296 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify()
351 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_verify()
393 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_set_pub_key()
417 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_init_tfm()
424 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_exit_tfm()
440 .cra_ctxsize = sizeof(struct mpi_ec_ctx),