diff options
author | jsing <> | 2025-01-06 12:35:14 +0000 |
---|---|---|
committer | jsing <> | 2025-01-06 12:35:14 +0000 |
commit | 040f047180525bbee39de311cf3ae17a898c86dc (patch) | |
tree | 56bceda3598e917f19ee015bb6e277b5c45d2f85 /src/lib/libcrypto/ec/ec_lib.c | |
parent | 52f13317baa428db8efa6305c98bcca1c8d6b93e (diff) | |
download | openbsd-040f047180525bbee39de311cf3ae17a898c86dc.tar.gz openbsd-040f047180525bbee39de311cf3ae17a898c86dc.tar.bz2 openbsd-040f047180525bbee39de311cf3ae17a898c86dc.zip |
Remove indirection for coordinate blinding.
This is usually method specific, so remove the indirection and call the
appropriate blinding function directly.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 170bdedc57..b1aad34017 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lib.c,v 1.96 2025/01/06 11:59:02 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.97 2025/01/06 12:35:14 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -766,24 +766,6 @@ EC_GROUP_cmp(const EC_GROUP *group1, const EC_GROUP *group2, BN_CTX *ctx_in) | |||
766 | } | 766 | } |
767 | LCRYPTO_ALIAS(EC_GROUP_cmp); | 767 | LCRYPTO_ALIAS(EC_GROUP_cmp); |
768 | 768 | ||
769 | /* | ||
770 | * Coordinate blinding for EC_POINT. | ||
771 | * | ||
772 | * The underlying EC_METHOD can optionally implement this function: | ||
773 | * underlying implementations should return 0 on errors, or 1 on success. | ||
774 | * | ||
775 | * This wrapper returns 1 in case the underlying EC_METHOD does not support | ||
776 | * coordinate blinding. | ||
777 | */ | ||
778 | int | ||
779 | ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx) | ||
780 | { | ||
781 | if (group->meth->blind_coordinates == NULL) | ||
782 | return 1; | ||
783 | |||
784 | return group->meth->blind_coordinates(group, p, ctx); | ||
785 | } | ||
786 | |||
787 | EC_POINT * | 769 | EC_POINT * |
788 | EC_POINT_new(const EC_GROUP *group) | 770 | EC_POINT_new(const EC_GROUP *group) |
789 | { | 771 | { |