int EC_GROUP_set_generator(EC_GROUP *, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
-/* TODO: 'get' functions for EC_GROUPs */
+/* TODO: 'set' and 'get' functions for EC_GROUPs */
EC_POINT *EC_POINT_new(const EC_GROUP *);
/* method functions in ecp_mont.c */
+int ec_GFp_mont_group_set_curve_GFp(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
+void ec_GFp_mont_group_finish(EC_GROUP *);
+void ec_GFp_mont_group_clear_finish(EC_GROUP *);
int ec_GFp_mont_field_mult(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
int ec_GFp_mont_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
int ec_GFp_mont_field_encode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
/* method functions in ecp_recp.c */
+int ec_GFp_recp_group_set_curve_GFp(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
+void ec_GFp_recp_group_finish(EC_GROUP *);
+void ec_GFp_recp_group_clear_finish(EC_GROUP *);
int ec_GFp_recp_field_mult(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
int ec_GFp_recp_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
int ec_GFp_recp_field_encode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
/* method functions in ecp_nist.c */
+int ec_GFp_nist_group_set_curve_GFp(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
+void ec_GFp_nist_group_finish(EC_GROUP *);
+void ec_GFp_nist_group_clear_finish(EC_GROUP *);
int ec_GFp_nist_field_mult(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
int ec_GFp_nist_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
int ec_GFp_nist_field_encode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
}
-/* TODO: 'get' functions for EC_GROUPs */
+/* TODO: 'set' and 'get' functions for EC_GROUPs */
/* this has 'package' visibility */
{
static const EC_METHOD ret = {
ec_GFp_simple_group_init,
- ec_GFp_simple_group_set_curve_GFp,
- ec_GFp_simple_group_finish,
- ec_GFp_simple_group_clear_finish,
+ ec_GFp_mont_group_set_curve_GFp,
+ ec_GFp_mont_group_finish,
+ ec_GFp_mont_group_clear_finish,
ec_GFp_simple_group_copy,
ec_GFp_simple_group_set_generator,
/* TODO: 'set' and 'get' functions for EC_GROUPs */
{
static const EC_METHOD ret = {
ec_GFp_simple_group_init,
- ec_GFp_simple_group_set_curve_GFp,
- ec_GFp_simple_group_finish,
- ec_GFp_simple_group_clear_finish,
+ ec_GFp_nist_group_set_curve_GFp,
+ ec_GFp_nist_group_finish,
+ ec_GFp_nist_group_clear_finish,
ec_GFp_simple_group_copy,
ec_GFp_simple_group_set_generator,
/* TODO: 'set' and 'get' functions for EC_GROUPs */
{
static const EC_METHOD ret = {
ec_GFp_simple_group_init,
- ec_GFp_simple_group_set_curve_GFp,
- ec_GFp_simple_group_finish,
- ec_GFp_simple_group_clear_finish,
+ ec_GFp_recp_group_set_curve_GFp,
+ ec_GFp_recp_group_finish,
+ ec_GFp_recp_group_clear_finish,
ec_GFp_simple_group_copy,
ec_GFp_simple_group_set_generator,
/* TODO: 'set' and 'get' functions for EC_GROUPs */