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_oct.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_oct.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_oct.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ecp_oct.c b/src/lib/libcrypto/ec/ecp_oct.c index da9eccfe6a..3d50f707c0 100644 --- a/src/lib/libcrypto/ec/ecp_oct.c +++ b/src/lib/libcrypto/ec/ecp_oct.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_oct.c,v 1.9 2018/07/10 22:06:14 tb Exp $ */ | 1 | /* $OpenBSD: ecp_oct.c,v 1.10 2018/07/15 05:38:48 jsg Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -190,7 +190,7 @@ ec_GFp_simple_set_compressed_coordinates(const EC_GROUP * group, | |||
190 | 190 | ||
191 | ret = 1; | 191 | ret = 1; |
192 | 192 | ||
193 | err: | 193 | err: |
194 | BN_CTX_end(ctx); | 194 | BN_CTX_end(ctx); |
195 | BN_CTX_free(new_ctx); | 195 | BN_CTX_free(new_ctx); |
196 | return ret; | 196 | return ret; |
@@ -294,7 +294,7 @@ ec_GFp_simple_point2oct(const EC_GROUP * group, const EC_POINT * point, point_co | |||
294 | BN_CTX_free(new_ctx); | 294 | BN_CTX_free(new_ctx); |
295 | return ret; | 295 | return ret; |
296 | 296 | ||
297 | err: | 297 | err: |
298 | if (used_ctx) | 298 | if (used_ctx) |
299 | BN_CTX_end(ctx); | 299 | BN_CTX_end(ctx); |
300 | BN_CTX_free(new_ctx); | 300 | BN_CTX_free(new_ctx); |
@@ -388,7 +388,7 @@ ec_GFp_simple_oct2point(const EC_GROUP * group, EC_POINT * point, | |||
388 | } | 388 | } |
389 | ret = 1; | 389 | ret = 1; |
390 | 390 | ||
391 | err: | 391 | err: |
392 | BN_CTX_end(ctx); | 392 | BN_CTX_end(ctx); |
393 | BN_CTX_free(new_ctx); | 393 | BN_CTX_free(new_ctx); |
394 | return ret; | 394 | return ret; |