summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-01-22 06:46:08 +0000
committertb <>2025-01-22 06:46:08 +0000
commite00886ad3c3ab905f05a8b6c0288eb21ee05c56a (patch)
treeb07bcd63daa439aac80ba2f98963ad959b39945a /src
parent0df9d349bb8f02d444758265b4729035cd44ba06 (diff)
downloadopenbsd-e00886ad3c3ab905f05a8b6c0288eb21ee05c56a.tar.gz
openbsd-e00886ad3c3ab905f05a8b6c0288eb21ee05c56a.tar.bz2
openbsd-e00886ad3c3ab905f05a8b6c0288eb21ee05c56a.zip
ectest: heed long forgotten XXX and switch back to BN_one()
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ec/ectest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/ec/ectest.c b/src/regress/lib/libcrypto/ec/ectest.c
index 48f05eeeee..7492c21e72 100644
--- a/src/regress/lib/libcrypto/ec/ectest.c
+++ b/src/regress/lib/libcrypto/ec/ectest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ectest.c,v 1.26 2025/01/06 10:43:26 tb Exp $ */ 1/* $OpenBSD: ectest.c,v 1.27 2025/01/22 06:46:08 tb 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 */
@@ -128,8 +128,7 @@ group_order_tests(EC_GROUP *group)
128 ABORT; 128 ABORT;
129 fprintf(stdout, " ok\n"); 129 fprintf(stdout, " ok\n");
130 fprintf(stdout, "long/negative scalar tests ... "); 130 fprintf(stdout, "long/negative scalar tests ... ");
131 /* XXX - switch back to BN_one() after next bump. */ 131 if (!BN_one(n1))
132 if (!BN_set_word(n1, 1))
133 ABORT; 132 ABORT;
134 /* n1 = 1 - order */ 133 /* n1 = 1 - order */
135 if (!BN_sub(n1, n1, order)) 134 if (!BN_sub(n1, n1, order))