diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nist.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ecp_nist.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nist.c b/src/lib/libcrypto/ec/ecp_nist.c index c34c708025..14ebe7d126 100644 --- a/src/lib/libcrypto/ec/ecp_nist.c +++ b/src/lib/libcrypto/ec/ecp_nist.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecp_nist.c,v 1.16 2021/04/20 17:28:18 tb Exp $ */ | 1 | /* $OpenBSD: ecp_nist.c,v 1.17 2021/04/20 17:38:02 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -81,20 +81,20 @@ EC_GFp_nist_method(void) | |||
| 81 | .group_get_curve = ec_GFp_simple_group_get_curve, | 81 | .group_get_curve = ec_GFp_simple_group_get_curve, |
| 82 | .group_get_degree = ec_GFp_simple_group_get_degree, | 82 | .group_get_degree = ec_GFp_simple_group_get_degree, |
| 83 | .group_check_discriminant = | 83 | .group_check_discriminant = |
| 84 | ec_GFp_simple_group_check_discriminant, | 84 | ec_GFp_simple_group_check_discriminant, |
| 85 | .point_init = ec_GFp_simple_point_init, | 85 | .point_init = ec_GFp_simple_point_init, |
| 86 | .point_finish = ec_GFp_simple_point_finish, | 86 | .point_finish = ec_GFp_simple_point_finish, |
| 87 | .point_clear_finish = ec_GFp_simple_point_clear_finish, | 87 | .point_clear_finish = ec_GFp_simple_point_clear_finish, |
| 88 | .point_copy = ec_GFp_simple_point_copy, | 88 | .point_copy = ec_GFp_simple_point_copy, |
| 89 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, | 89 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, |
| 90 | .point_set_Jprojective_coordinates = | 90 | .point_set_Jprojective_coordinates = |
| 91 | ec_GFp_simple_set_Jprojective_coordinates, | 91 | ec_GFp_simple_set_Jprojective_coordinates, |
| 92 | .point_get_Jprojective_coordinates = | 92 | .point_get_Jprojective_coordinates = |
| 93 | ec_GFp_simple_get_Jprojective_coordinates, | 93 | ec_GFp_simple_get_Jprojective_coordinates, |
| 94 | .point_set_affine_coordinates = | 94 | .point_set_affine_coordinates = |
| 95 | ec_GFp_simple_point_set_affine_coordinates, | 95 | ec_GFp_simple_point_set_affine_coordinates, |
| 96 | .point_get_affine_coordinates = | 96 | .point_get_affine_coordinates = |
| 97 | ec_GFp_simple_point_get_affine_coordinates, | 97 | ec_GFp_simple_point_get_affine_coordinates, |
| 98 | .add = ec_GFp_simple_add, | 98 | .add = ec_GFp_simple_add, |
| 99 | .dbl = ec_GFp_simple_dbl, | 99 | .dbl = ec_GFp_simple_dbl, |
| 100 | .invert = ec_GFp_simple_invert, | 100 | .invert = ec_GFp_simple_invert, |
| @@ -114,7 +114,7 @@ EC_GFp_nist_method(void) | |||
| 114 | return &ret; | 114 | return &ret; |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | int | 117 | int |
| 118 | ec_GFp_nist_group_copy(EC_GROUP * dest, const EC_GROUP * src) | 118 | ec_GFp_nist_group_copy(EC_GROUP * dest, const EC_GROUP * src) |
| 119 | { | 119 | { |
| 120 | dest->field_mod_func = src->field_mod_func; | 120 | dest->field_mod_func = src->field_mod_func; |
| @@ -122,7 +122,7 @@ ec_GFp_nist_group_copy(EC_GROUP * dest, const EC_GROUP * src) | |||
| 122 | return ec_GFp_simple_group_copy(dest, src); | 122 | return ec_GFp_simple_group_copy(dest, src); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | int | 125 | int |
| 126 | ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, | 126 | ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, |
| 127 | const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) | 127 | const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) |
| 128 | { | 128 | { |
| @@ -162,7 +162,7 @@ ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, | |||
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | 164 | ||
| 165 | int | 165 | int |
| 166 | ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, | 166 | ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, |
| 167 | const BIGNUM *b, BN_CTX *ctx) | 167 | const BIGNUM *b, BN_CTX *ctx) |
| 168 | { | 168 | { |
| @@ -189,7 +189,7 @@ ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, | |||
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | 191 | ||
| 192 | int | 192 | int |
| 193 | ec_GFp_nist_field_sqr(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a, | 193 | ec_GFp_nist_field_sqr(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a, |
| 194 | BN_CTX * ctx) | 194 | BN_CTX * ctx) |
| 195 | { | 195 | { |
