diff options
author | tb <> | 2022-12-17 23:41:29 +0000 |
---|---|---|
committer | tb <> | 2022-12-17 23:41:29 +0000 |
commit | 8eaff1f442eec35e2411d24b73e5437fc33824ac (patch) | |
tree | 5e41b72afc34a2308d2e38038b4fd770943a7125 | |
parent | d6f255426bf15dd6fb8959e62d5ddecc0f1f735b (diff) | |
download | openbsd-8eaff1f442eec35e2411d24b73e5437fc33824ac.tar.gz openbsd-8eaff1f442eec35e2411d24b73e5437fc33824ac.tar.bz2 openbsd-8eaff1f442eec35e2411d24b73e5437fc33824ac.zip |
Switch to using BN_zero() instead of BN_zero_ex()
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp2_mont.c | 4 |
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"); |