Lines Matching defs:mpi_ec_ctx
196 struct mpi_ec_ctx { struct
197 enum gcry_mpi_ec_models model; /* The model describing this curve. */
198 enum ecc_dialects dialect; /* The ECC dialect used with the curve. */
199 int flags; /* Public key flags (not always used). */
200 unsigned int nbits; /* Number of bits. */
205 MPI p; /* Prime specifying the field GF(p). */
206 MPI a; /* First coefficient of the Weierstrass equation. */
207 MPI b; /* Second coefficient of the Weierstrass equation. */
208 MPI_POINT G; /* Base point (generator). */
209 MPI n; /* Order of G. */
210 unsigned int h; /* Cofactor. */
213 MPI_POINT Q; /* Public key. */
214 MPI d; /* Private key. */
216 const char *name; /* Name of the curve. */
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