summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-06-04 07:14:47 +0000
committertb <>2023-06-04 07:14:47 +0000
commite1592222813d718fc450a6a4799412fe86185a9f (patch)
tree333de1dc150974538ab664c203cd76e093d937f9 /src
parent359dbb8e7485c66a6707470ce9d5af0ddbbff9f8 (diff)
downloadopenbsd-e1592222813d718fc450a6a4799412fe86185a9f.tar.gz
openbsd-e1592222813d718fc450a6a4799412fe86185a9f.tar.bz2
openbsd-e1592222813d718fc450a6a4799412fe86185a9f.zip
bn_mod_inverse tweaks
Provide prototype that is hidden behind LIBRESSL_INTERNAL for portable and or in result for future extensibility.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_inverse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_inverse.c b/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
index b73d050669..f05e78c260 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_inverse.c,v 1.1 2023/06/03 21:20:29 tb Exp $ */ 1/* $OpenBSD: bn_mod_inverse.c,v 1.2 2023/06/04 07:14:47 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -21,6 +21,8 @@
21 21
22#include <openssl/bn.h> 22#include <openssl/bn.h>
23 23
24BIGNUM *BN_mod_inverse(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
25
24static const struct mod_inv_test { 26static const struct mod_inv_test {
25 const char *i; 27 const char *i;
26 const char *a; 28 const char *a;
@@ -379,7 +381,7 @@ main(void)
379{ 381{
380 int failed = 0; 382 int failed = 0;
381 383
382 failed = test_bn_mod_inverse(); 384 failed |= test_bn_mod_inverse();
383 385
384 return failed; 386 return failed;
385} 387}