diff options
author | jsing <> | 2024-03-26 04:23:04 +0000 |
---|---|---|
committer | jsing <> | 2024-03-26 04:23:04 +0000 |
commit | f44d969948e579847edde9b8e70862e0c5a3638d (patch) | |
tree | f634da303488e22beb9462a0eb53c0e019d4da05 /src | |
parent | 6aa75b1ecf0d0a1d8d5b03f84fbaf697818b9a9e (diff) | |
download | openbsd-f44d969948e579847edde9b8e70862e0c5a3638d.tar.gz openbsd-f44d969948e579847edde9b8e70862e0c5a3638d.tar.bz2 openbsd-f44d969948e579847edde9b8e70862e0c5a3638d.zip |
Mark internal functions as static.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ | |||
1 | /* $OpenBSD: bn_mont.c,v 1.62 2024/03/26 04:14:45 jsing Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.63 2024/03/26 04:23:04 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -436,7 +436,7 @@ bn_montgomery_multiply_word(const BN_ULONG *ap, BN_ULONG b, const BN_ULONG *np, | |||
436 | * given word arrays. The caller must ensure that rp, ap, bp and np are all | 436 | * given word arrays. The caller must ensure that rp, ap, bp and np are all |
437 | * n_len words in length, while tp must be n_len * 2 + 2 words in length. | 437 | * n_len words in length, while tp must be n_len * 2 + 2 words in length. |
438 | */ | 438 | */ |
439 | void | 439 | static void |
440 | bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | 440 | bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, |
441 | const BN_ULONG *np, BN_ULONG *tp, BN_ULONG n0, int n_len) | 441 | const BN_ULONG *np, BN_ULONG *tp, BN_ULONG n0, int n_len) |
442 | { | 442 | { |
@@ -484,7 +484,7 @@ bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *b | |||
484 | * BIGNUMs. The caller must ensure that the modulus is two or more words in | 484 | * BIGNUMs. The caller must ensure that the modulus is two or more words in |
485 | * length and that a and b have the same number of words as the modulus. | 485 | * length and that a and b have the same number of words as the modulus. |
486 | */ | 486 | */ |
487 | int | 487 | static int |
488 | bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | 488 | bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, |
489 | BN_MONT_CTX *mctx, BN_CTX *ctx) | 489 | BN_MONT_CTX *mctx, BN_CTX *ctx) |
490 | { | 490 | { |
@@ -519,7 +519,7 @@ bn_montgomery_multiply(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | |||
519 | } | 519 | } |
520 | 520 | ||
521 | #ifndef OPENSSL_BN_ASM_MONT | 521 | #ifndef OPENSSL_BN_ASM_MONT |
522 | int | 522 | static int |
523 | bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | 523 | bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, |
524 | BN_MONT_CTX *mctx, BN_CTX *ctx) | 524 | BN_MONT_CTX *mctx, BN_CTX *ctx) |
525 | { | 525 | { |
@@ -530,7 +530,7 @@ bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | |||
530 | } | 530 | } |
531 | #else | 531 | #else |
532 | 532 | ||
533 | int | 533 | static int |
534 | bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | 534 | bn_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, |
535 | BN_MONT_CTX *mctx, BN_CTX *ctx) | 535 | BN_MONT_CTX *mctx, BN_CTX *ctx) |
536 | { | 536 | { |