From: tb Date: Sun, 4 Jun 2023 07:14:47 +0000 (+0000) Subject: bn_mod_inverse tweaks X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b505647788ae15f0ce76d3e2351b7fba333e6bd5;p=openbsd bn_mod_inverse tweaks Provide prototype that is hidden behind LIBRESSL_INTERNAL for portable and or in result for future extensibility. --- diff --git a/regress/lib/libcrypto/bn/bn_mod_inverse.c b/regress/lib/libcrypto/bn/bn_mod_inverse.c index b73d0506691..f05e78c260f 100644 --- a/regress/lib/libcrypto/bn/bn_mod_inverse.c +++ b/regress/lib/libcrypto/bn/bn_mod_inverse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_inverse.c,v 1.1 2023/06/03 21:20:29 tb Exp $ */ +/* $OpenBSD: bn_mod_inverse.c,v 1.2 2023/06/04 07:14:47 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler @@ -21,6 +21,8 @@ #include +BIGNUM *BN_mod_inverse(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); + static const struct mod_inv_test { const char *i; const char *a; @@ -379,7 +381,7 @@ main(void) { int failed = 0; - failed = test_bn_mod_inverse(); + failed |= test_bn_mod_inverse(); return failed; }