|
1 |
| -/* $OpenBSD: sshkey.c,v 1.147 2024/09/22 12:56:21 jsg Exp $ */ |
| 1 | +/* $OpenBSD: sshkey.c,v 1.148 2024/12/03 15:53:51 tb Exp $ */ |
2 | 2 | /*
|
3 | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
|
4 | 4 | * Copyright (c) 2008 Alexander von Gernler. All rights reserved.
|
@@ -2705,14 +2705,6 @@ sshkey_ec_validate_public(const EC_GROUP *group, const EC_POINT *public)
|
2705 | 2705 | * EC_POINT_oct2point then the caller will need to explicitly check.
|
2706 | 2706 | */
|
2707 | 2707 |
|
2708 |
| - /* |
2709 |
| - * We shouldn't ever hit this case because bignum_get_ecpoint() |
2710 |
| - * refuses to load GF2m points. |
2711 |
| - */ |
2712 |
| - if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) != |
2713 |
| - NID_X9_62_prime_field) |
2714 |
| - goto out; |
2715 |
| - |
2716 | 2708 | /* Q != infinity */
|
2717 | 2709 | if (EC_POINT_is_at_infinity(group, public))
|
2718 | 2710 | goto out;
|
@@ -2812,11 +2804,6 @@ sshkey_dump_ec_point(const EC_GROUP *group, const EC_POINT *point)
|
2812 | 2804 | fprintf(stderr, "%s: BN_new failed\n", __func__);
|
2813 | 2805 | goto out;
|
2814 | 2806 | }
|
2815 |
| - if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) != |
2816 |
| - NID_X9_62_prime_field) { |
2817 |
| - fprintf(stderr, "%s: group is not a prime field\n", __func__); |
2818 |
| - goto out; |
2819 |
| - } |
2820 | 2807 | if (EC_POINT_get_affine_coordinates_GFp(group, point,
|
2821 | 2808 | x, y, NULL) != 1) {
|
2822 | 2809 | fprintf(stderr, "%s: EC_POINT_get_affine_coordinates_GFp\n",
|
|
0 commit comments