summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-12-17 23:41:29 +0000
committertb <>2022-12-17 23:41:29 +0000
commit58a4748e993c1bcef12712a479da262071e91805 (patch)
tree5e41b72afc34a2308d2e38038b4fd770943a7125
parentd5fbcf217f0f966ca4da945aa33be4bc3b4b5649 (diff)
downloadopenbsd-58a4748e993c1bcef12712a479da262071e91805.tar.gz
openbsd-58a4748e993c1bcef12712a479da262071e91805.tar.bz2
openbsd-58a4748e993c1bcef12712a479da262071e91805.zip
Switch to using BN_zero() instead of BN_zero_ex()
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c b/src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c
index 0fa2b960df..aa1cd0e0cc 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_exp2_mont.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp2_mont.c,v 1.2 2022/12/17 23:41:29 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -32,7 +32,7 @@ main(void)
32 if ((m = BN_new()) == NULL) 32 if ((m = BN_new()) == NULL)
33 errx(1, "BN_new"); 33 errx(1, "BN_new");
34 34
35 BN_zero_ex(m); 35 BN_zero(m);
36 36
37 if (BN_mod_exp2_mont(NULL, NULL, NULL, NULL, NULL, m, NULL, NULL)) 37 if (BN_mod_exp2_mont(NULL, NULL, NULL, NULL, NULL, m, NULL, NULL))
38 errx(1, "BN_mod_exp2_mont succeeded"); 38 errx(1, "BN_mod_exp2_mont succeeded");