Searched refs:mpi_ec_ctx (Results 1 – 3 of 3) sorted by relevance
/linux-6.3-rc2/include/linux/ |
A D | mpi.h | 196 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); 259 struct mpi_ec_ctx *ctx); 262 struct mpi_ec_ctx *ctx); [all …]
|
/linux-6.3-rc2/lib/mpi/ |
A D | ec.c | 104 struct mpi_ec_ctx *ctx) in point_swap_cond() 150 struct mpi_ec_ctx *ctx) in ec_powm() 648 void mpi_ec_deinit(struct mpi_ec_ctx *ctx) in mpi_ec_deinit() 754 MPI_POINT point, struct mpi_ec_ctx *ctx) in dup_point_weierstrass() 843 MPI_POINT point, struct mpi_ec_ctx *ctx) in dup_point_edwards() 933 struct mpi_ec_ctx *ctx) in add_points_weierstrass() 1058 struct mpi_ec_ctx *ctx) in add_points_montgomery() 1071 struct mpi_ec_ctx *ctx) in add_points_edwards() 1165 struct mpi_ec_ctx *ctx) in montgomery_ladder() 1190 struct mpi_ec_ctx *ctx) in mpi_ec_add_points() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | sm2.c | 63 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),
|
Completed in 8 milliseconds