summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/gost
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/gost')
-rw-r--r--src/lib/libcrypto/gost/gostr341001_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/gost/gostr341001_key.c b/src/lib/libcrypto/gost/gostr341001_key.c
index efc9e57452..0170ab44ba 100644
--- a/src/lib/libcrypto/gost/gostr341001_key.c
+++ b/src/lib/libcrypto/gost/gostr341001_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gostr341001_key.c,v 1.13 2023/07/08 14:30:44 beck Exp $ */ 1/* $OpenBSD: gostr341001_key.c,v 1.14 2023/07/24 17:08:53 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
4 * Copyright (c) 2005-2006 Cryptocom LTD 4 * Copyright (c) 2005-2006 Cryptocom LTD
@@ -132,7 +132,7 @@ GOST_KEY_check_key(const GOST_KEY *key)
132 goto err; 132 goto err;
133 133
134 /* testing whether the pub_key is on the elliptic curve */ 134 /* testing whether the pub_key is on the elliptic curve */
135 if (EC_POINT_is_on_curve(key->group, key->pub_key, ctx) == 0) { 135 if (EC_POINT_is_on_curve(key->group, key->pub_key, ctx) <= 0) {
136 GOSTerror(EC_R_POINT_IS_NOT_ON_CURVE); 136 GOSTerror(EC_R_POINT_IS_NOT_ON_CURVE);
137 goto err; 137 goto err;
138 } 138 }