From f44d969948e579847edde9b8e70862e0c5a3638d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 26 Mar 2024 04:23:04 +0000 Subject: Mark internal functions as static. --- src/lib/libcrypto/bn/bn_mont.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index 7fdbfbd54d..c7e2eefb58 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mont.c,v 1.62 2024/03/26 04:14:45 jsing Exp $ */ +/* $OpenBSD: bn_mont.c,v 1.63 2024/03/26 04:23:04 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -436,7 +436,7 @@ bn_montgomery_multiply_word(const BN_ULONG *ap, BN_ULONG b, const BN_ULONG *np, * given word arrays. The caller must ensure that rp, ap, bp and np are all * n_len words in length, while tp must be n_len * 2 + 2 words in length. */ -void +static void bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np, BN_ULONG *tp, BN_ULONG n0, int n_len) { @@ -484,7 +484,7 @@ bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *b * BIGNUMs. The caller must ensure that the modulus is two or more words in * length and that a and b have the same number of words as the modulus. */ -int +static int bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mctx, BN_CTX *ctx) { @@ -519,7 +519,7 @@ bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, } #ifndef OPENSSL_BN_ASM_MONT -int +static int bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mctx, BN_CTX *ctx) { @@ -530,7 +530,7 @@ bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, } #else -int +static int bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mctx, BN_CTX *ctx) { -- cgit v1.2.3-55-g6feb