diff options
| author | tb <> | 2023-04-25 19:53:30 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-25 19:53:30 +0000 |
| commit | 0725c451bef02fc23e8b5bafa353df9cd02984b7 (patch) | |
| tree | e9be44ea96c7294efcc800d9cb419edbab4fe999 /src/lib/libcrypto/ec/ec_lib.c | |
| parent | ae6c86218c35619cec69850fd313bea6175da6dc (diff) | |
| download | openbsd-0725c451bef02fc23e8b5bafa353df9cd02984b7.tar.gz openbsd-0725c451bef02fc23e8b5bafa353df9cd02984b7.tar.bz2 openbsd-0725c451bef02fc23e8b5bafa353df9cd02984b7.zip | |
GF2m bites the dust. It won't be missed.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 683c49fef7..f560aa9991 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.55 2023/04/13 07:44:12 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.56 2023/04/25 19:53:30 tb 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 | */ |
| @@ -549,22 +549,6 @@ EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | |||
| 549 | return EC_GROUP_get_curve(group, p, a, b, ctx); | 549 | return EC_GROUP_get_curve(group, p, a, b, ctx); |
| 550 | } | 550 | } |
| 551 | 551 | ||
| 552 | #ifndef OPENSSL_NO_EC2M | ||
| 553 | int | ||
| 554 | EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | ||
| 555 | const BIGNUM *b, BN_CTX *ctx) | ||
| 556 | { | ||
| 557 | return EC_GROUP_set_curve(group, p, a, b, ctx); | ||
| 558 | } | ||
| 559 | |||
| 560 | int | ||
| 561 | EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, | ||
| 562 | BIGNUM *b, BN_CTX *ctx) | ||
| 563 | { | ||
| 564 | return EC_GROUP_get_curve(group, p, a, b, ctx); | ||
| 565 | } | ||
| 566 | #endif | ||
| 567 | |||
| 568 | int | 552 | int |
| 569 | EC_GROUP_get_degree(const EC_GROUP *group) | 553 | EC_GROUP_get_degree(const EC_GROUP *group) |
| 570 | { | 554 | { |
| @@ -1072,15 +1056,6 @@ EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, | |||
| 1072 | return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); | 1056 | return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); |
| 1073 | } | 1057 | } |
| 1074 | 1058 | ||
| 1075 | #ifndef OPENSSL_NO_EC2M | ||
| 1076 | int | ||
| 1077 | EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group, EC_POINT *point, | ||
| 1078 | const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) | ||
| 1079 | { | ||
| 1080 | return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); | ||
| 1081 | } | ||
| 1082 | #endif | ||
| 1083 | |||
| 1084 | int | 1059 | int |
| 1085 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, | 1060 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, |
| 1086 | BIGNUM *x, BIGNUM *y, BN_CTX *ctx_in) | 1061 | BIGNUM *x, BIGNUM *y, BN_CTX *ctx_in) |
| @@ -1117,15 +1092,6 @@ EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point | |||
| 1117 | return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); | 1092 | return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); |
| 1118 | } | 1093 | } |
| 1119 | 1094 | ||
| 1120 | #ifndef OPENSSL_NO_EC2M | ||
| 1121 | int | ||
| 1122 | EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group, const EC_POINT *point, | ||
| 1123 | BIGNUM *x, BIGNUM *y, BN_CTX *ctx) | ||
| 1124 | { | ||
| 1125 | return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); | ||
| 1126 | } | ||
| 1127 | #endif | ||
| 1128 | |||
| 1129 | int | 1095 | int |
| 1130 | EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | 1096 | EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, |
| 1131 | const EC_POINT *b, BN_CTX *ctx_in) | 1097 | const EC_POINT *b, BN_CTX *ctx_in) |
