TLS/SSL and crypto library
リビジョン | a3b54f0f5de1ad17889fd23aee7c230eefc300cd (tree) |
---|---|
日時 | 2019-09-12 08:08:27 |
作者 | Nicola Tuveri <nic.tuv@gmai...> |
コミッター | Nicola Tuveri |
Fix no-ec2m in ec_curve.c (1.1.0)
I made a mistake in d4a5dac9f9242c580fb9d0a4389440eccd3494a7 and
inverted the GF2m and GFp calls in ec_point_get_affine_coordinates, this
fixes it.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9873)
@@ -3200,11 +3200,11 @@ int ec_point_get_affine_coordinates(const EC_GROUP *group, | ||
3200 | 3200 | |
3201 | 3201 | #ifndef OPENSSL_NO_EC2M |
3202 | 3202 | if (field_nid == NID_X9_62_characteristic_two_field) { |
3203 | - return EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx); | |
3203 | + return EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx); | |
3204 | 3204 | } else |
3205 | 3205 | #endif /* !def(OPENSSL_NO_EC2M) */ |
3206 | 3206 | if (field_nid == NID_X9_62_prime_field) { |
3207 | - return EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx); | |
3207 | + return EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx); | |
3208 | 3208 | } else { |
3209 | 3209 | /* this should never happen */ |
3210 | 3210 | return 0; |