summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nist.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2003-02-08 19:51:37 +0000
committerBodo Möller <bodo@openssl.org>2003-02-08 19:51:37 +0000
commite2c9c91b5b4b836fef2839c50eca4fe574242a7f (patch)
tree714823f2fc3b74014fc1da7792eee511253f38fb /crypto/ec/ecp_nist.c
parentd42d2d1ab6a558769d84f31b6c7088192f311b62 (diff)
fix EC_GROUP_copy for EC_GFp_nist_method()
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ecp_nist.c')
-rw-r--r--crypto/ec/ecp_nist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/ec/ecp_nist.c b/crypto/ec/ecp_nist.c
index c28b27530e..d2dbfe6743 100644
--- a/crypto/ec/ecp_nist.c
+++ b/crypto/ec/ecp_nist.c
@@ -72,7 +72,7 @@ const EC_METHOD *EC_GFp_nist_method(void)
ec_GFp_simple_group_init,
ec_GFp_simple_group_finish,
ec_GFp_simple_group_clear_finish,
- ec_GFp_simple_group_copy,
+ ec_GFp_nist_group_copy,
ec_GFp_nist_group_set_curve,
ec_GFp_simple_group_get_curve,
ec_GFp_simple_group_get_degree,
@@ -114,6 +114,12 @@ const EC_METHOD *EC_GFp_nist_method(void)
#define NO_32_BIT_TYPE
#endif
+int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src)
+ {
+ dest->field_mod_func = src->field_mod_func;
+
+ return ec_GFp_simple_group_copy(dest, src);
+ }
int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)