aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nist.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-11-18 14:33:39 +0000
committerBodo Möller <bodo@openssl.org>2002-11-18 14:33:39 +0000
commit46633554961a5950410ef5690093b56f1f06e752 (patch)
tree23bac08f10b30941e4e28887099eb30909bb563c /crypto/ec/ecp_nist.c
parent9dc610495cb70d9e9566a188853860c542221d86 (diff)
downloadopenssl-46633554961a5950410ef5690093b56f1f06e752.tar.gz
use consistent order of function definitions
Diffstat (limited to 'crypto/ec/ecp_nist.c')
-rw-r--r--crypto/ec/ecp_nist.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/crypto/ec/ecp_nist.c b/crypto/ec/ecp_nist.c
index 0b39bb6166..a6634f9bff 100644
--- a/crypto/ec/ecp_nist.c
+++ b/crypto/ec/ecp_nist.c
@@ -128,7 +128,6 @@ void ec_GFp_nist_group_finish(EC_GROUP *group)
BN_free(&group->b);
}
-
void ec_GFp_nist_group_clear_finish(EC_GROUP *group)
{
BN_clear_free(&group->field);
@@ -136,6 +135,25 @@ void ec_GFp_nist_group_clear_finish(EC_GROUP *group)
BN_clear_free(&group->b);
}
+int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src)
+ {
+ if (dest == NULL || src == NULL)
+ return 0;
+
+ if (!BN_copy(&dest->field, &src->field))
+ return 0;
+ if (!BN_copy(&dest->a, &src->a))
+ return 0;
+ if (!BN_copy(&dest->b, &src->b))
+ return 0;
+
+ dest->curve_name = src->curve_name;
+
+ dest->a_is_minus3 = src->a_is_minus3;
+
+ return 1;
+ }
+
int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
@@ -211,25 +229,6 @@ int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
return ret;
}
-int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src)
- {
- if (dest == NULL || src == NULL)
- return 0;
-
- if (!BN_copy(&dest->field, &src->field))
- return 0;
- if (!BN_copy(&dest->a, &src->a))
- return 0;
- if (!BN_copy(&dest->b, &src->b))
- return 0;
-
- dest->curve_name = src->curve_name;
-
- dest->a_is_minus3 = src->a_is_minus3;
-
- return 1;
- }
-
int ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
const BIGNUM *b, BN_CTX *ctx)
{