diff options
| author | jsing <> | 2023-03-08 04:50:27 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-08 04:50:27 +0000 |
| commit | c1e53bad96443f0f9eea47910c725fb8cb5636ac (patch) | |
| tree | 3c4980fe37e68835a8cfd79b0b18e7d38f9c023b /src/lib/libcrypto/ec/ecp_smpl.c | |
| parent | ecd1f4763943bcfd15caa4b48ac41a4b1f90be7a (diff) | |
| download | openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.tar.gz openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.tar.bz2 openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.zip | |
Remove EC_FLAGS_DEFAULT_OCT.
The EC code has an amazing array of function pointer hooks, such that a
method can hook into almost any operation... and then there is the
EC_FLAGS_DEFAULT_OCT flag, which adds a bunch of complex code and #ifdef
so you can avoid setting three of those function pointers!
Remove EC_FLAGS_DEFAULT_OCT, the now unused flags field from EC_METHOD,
along with the various code that was wrapped in EC_FLAGS_DEFAULT_OCT,
setting the three function pointers that need to be set in each of the
EC_METHODs.
ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_smpl.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index df9806445c..c33347ad85 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecp_smpl.c,v 1.40 2023/03/07 09:27:10 jsing Exp $ */ | 1 | /* $OpenBSD: ecp_smpl.c,v 1.41 2023/03/08 04:50:27 jsing Exp $ */ |
| 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
| 3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
| 4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
| @@ -1654,7 +1654,6 @@ ec_GFp_simple_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, | |||
| 1654 | } | 1654 | } |
| 1655 | 1655 | ||
| 1656 | static const EC_METHOD ec_GFp_simple_method = { | 1656 | static const EC_METHOD ec_GFp_simple_method = { |
| 1657 | .flags = EC_FLAGS_DEFAULT_OCT, | ||
| 1658 | .field_type = NID_X9_62_prime_field, | 1657 | .field_type = NID_X9_62_prime_field, |
| 1659 | .group_init = ec_GFp_simple_group_init, | 1658 | .group_init = ec_GFp_simple_group_init, |
| 1660 | .group_finish = ec_GFp_simple_group_finish, | 1659 | .group_finish = ec_GFp_simple_group_finish, |
| @@ -1678,6 +1677,10 @@ static const EC_METHOD ec_GFp_simple_method = { | |||
| 1678 | ec_GFp_simple_point_set_affine_coordinates, | 1677 | ec_GFp_simple_point_set_affine_coordinates, |
| 1679 | .point_get_affine_coordinates = | 1678 | .point_get_affine_coordinates = |
| 1680 | ec_GFp_simple_point_get_affine_coordinates, | 1679 | ec_GFp_simple_point_get_affine_coordinates, |
| 1680 | .point_set_compressed_coordinates = | ||
| 1681 | ec_GFp_simple_set_compressed_coordinates, | ||
| 1682 | .point2oct = ec_GFp_simple_point2oct, | ||
| 1683 | .oct2point = ec_GFp_simple_oct2point, | ||
| 1681 | .add = ec_GFp_simple_add, | 1684 | .add = ec_GFp_simple_add, |
| 1682 | .dbl = ec_GFp_simple_dbl, | 1685 | .dbl = ec_GFp_simple_dbl, |
| 1683 | .invert = ec_GFp_simple_invert, | 1686 | .invert = ec_GFp_simple_invert, |
