diff options
author | jsg <> | 2018-07-15 05:38:48 +0000 |
---|---|---|
committer | jsg <> | 2018-07-15 05:38:48 +0000 |
commit | 5a27d0fd33187fa17d3aa1b151b981a5434a200f (patch) | |
tree | 7b8b0c999036035f793976bbe0b018b39f74e217 /src/lib/libcrypto/ec/ecp_mont.c | |
parent | 4ffff01bec4bc66afd2ef22fba624a0d3cffdc04 (diff) | |
download | openbsd-5a27d0fd33187fa17d3aa1b151b981a5434a200f.tar.gz openbsd-5a27d0fd33187fa17d3aa1b151b981a5434a200f.tar.bz2 openbsd-5a27d0fd33187fa17d3aa1b151b981a5434a200f.zip |
back out ecc constant time changes
after the constant time commits various regress tests started failing
on sparc64 ssh t9, libcrypto ec ecdh ecdsa and trying to ssh out
resulted in 'invalid elliptic curve value'
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_mont.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_mont.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ec/ecp_mont.c b/src/lib/libcrypto/ec/ecp_mont.c index 302f833306..03e594d38d 100644 --- a/src/lib/libcrypto/ec/ecp_mont.c +++ b/src/lib/libcrypto/ec/ecp_mont.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_mont.c,v 1.13 2018/07/10 22:06:14 tb Exp $ */ | 1 | /* $OpenBSD: ecp_mont.c,v 1.14 2018/07/15 05:38:48 jsg 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 | */ |
@@ -102,9 +102,6 @@ EC_GFp_mont_method(void) | |||
102 | .point_cmp = ec_GFp_simple_cmp, | 102 | .point_cmp = ec_GFp_simple_cmp, |
103 | .make_affine = ec_GFp_simple_make_affine, | 103 | .make_affine = ec_GFp_simple_make_affine, |
104 | .points_make_affine = ec_GFp_simple_points_make_affine, | 104 | .points_make_affine = ec_GFp_simple_points_make_affine, |
105 | .mul_generator_ct = ec_GFp_simple_mul_generator_ct, | ||
106 | .mul_single_ct = ec_GFp_simple_mul_single_ct, | ||
107 | .mul_double_nonct = ec_GFp_simple_mul_double_nonct, | ||
108 | .field_mul = ec_GFp_mont_field_mul, | 105 | .field_mul = ec_GFp_mont_field_mul, |
109 | .field_sqr = ec_GFp_mont_field_sqr, | 106 | .field_sqr = ec_GFp_mont_field_sqr, |
110 | .field_encode = ec_GFp_mont_field_encode, | 107 | .field_encode = ec_GFp_mont_field_encode, |
@@ -175,7 +172,7 @@ ec_GFp_mont_group_copy(EC_GROUP * dest, const EC_GROUP * src) | |||
175 | } | 172 | } |
176 | return 1; | 173 | return 1; |
177 | 174 | ||
178 | err: | 175 | err: |
179 | if (dest->field_data1 != NULL) { | 176 | if (dest->field_data1 != NULL) { |
180 | BN_MONT_CTX_free(dest->field_data1); | 177 | BN_MONT_CTX_free(dest->field_data1); |
181 | dest->field_data1 = NULL; | 178 | dest->field_data1 = NULL; |
@@ -228,7 +225,7 @@ ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | |||
228 | BN_free(group->field_data2); | 225 | BN_free(group->field_data2); |
229 | group->field_data2 = NULL; | 226 | group->field_data2 = NULL; |
230 | } | 227 | } |
231 | err: | 228 | err: |
232 | BN_CTX_free(new_ctx); | 229 | BN_CTX_free(new_ctx); |
233 | BN_MONT_CTX_free(mont); | 230 | BN_MONT_CTX_free(mont); |
234 | BN_free(one); | 231 | BN_free(one); |