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/ec2_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/ec2_oct.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec2_oct.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec2_oct.c b/src/lib/libcrypto/ec/ec2_oct.c index 1727f780a3..bb480c5016 100644 --- a/src/lib/libcrypto/ec/ec2_oct.c +++ b/src/lib/libcrypto/ec/ec2_oct.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec2_oct.c,v 1.9 2018/07/10 22:06:14 tb Exp $ */ | 1 | /* $OpenBSD: ec2_oct.c,v 1.10 2018/07/15 05:38:48 jsg Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -157,7 +157,7 @@ ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point | |||
157 | 157 | ||
158 | ret = 1; | 158 | ret = 1; |
159 | 159 | ||
160 | err: | 160 | err: |
161 | BN_CTX_end(ctx); | 161 | BN_CTX_end(ctx); |
162 | BN_CTX_free(new_ctx); | 162 | BN_CTX_free(new_ctx); |
163 | return ret; | 163 | return ret; |
@@ -272,7 +272,7 @@ ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
272 | BN_CTX_free(new_ctx); | 272 | BN_CTX_free(new_ctx); |
273 | return ret; | 273 | return ret; |
274 | 274 | ||
275 | err: | 275 | err: |
276 | if (used_ctx) | 276 | if (used_ctx) |
277 | BN_CTX_end(ctx); | 277 | BN_CTX_end(ctx); |
278 | BN_CTX_free(new_ctx); | 278 | BN_CTX_free(new_ctx); |
@@ -374,7 +374,7 @@ ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, | |||
374 | } | 374 | } |
375 | ret = 1; | 375 | ret = 1; |
376 | 376 | ||
377 | err: | 377 | err: |
378 | BN_CTX_end(ctx); | 378 | BN_CTX_end(ctx); |
379 | BN_CTX_free(new_ctx); | 379 | BN_CTX_free(new_ctx); |
380 | return ret; | 380 | return ret; |