Home
last modified time | relevance | path

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

/Linux-v6.6/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 …]
/Linux-v6.6/crypto/
Dsm2.c66 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()
[all …]
/Linux-v6.6/lib/crypto/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 …]