diff options
| author | jsing <> | 2025-08-05 15:01:13 +0000 |
|---|---|---|
| committer | jsing <> | 2025-08-05 15:01:13 +0000 |
| commit | dc28959092efae771ef92dcf98fcb3ba4fce15cb (patch) | |
| tree | 06c35f6bdca3658d24b026ec56a224bf41bd074a /src/lib/libcrypto/bn/arch | |
| parent | 5a2842c24fa46be5dfa91f663185a741c07702be (diff) | |
| download | openbsd-dc28959092efae771ef92dcf98fcb3ba4fce15cb.tar.gz openbsd-dc28959092efae771ef92dcf98fcb3ba4fce15cb.tar.bz2 openbsd-dc28959092efae771ef92dcf98fcb3ba4fce15cb.zip | |
Mark the inputs to bn_mul_comba{4,8}() as const.
This makes it consistent with bn_sqr_comba{4,8}() and simplifies an
upcoming change.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/arch')
| -rw-r--r-- | src/lib/libcrypto/bn/arch/amd64/bn_arch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c index a377a05681..8eb3670def 100644 --- a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c +++ b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.c,v 1.7 2023/06/24 16:01:44 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.c,v 1.8 2025/08/05 15:01:13 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -78,7 +78,7 @@ bn_mul_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w) | |||
| 78 | 78 | ||
| 79 | #ifdef HAVE_BN_MUL_COMBA4 | 79 | #ifdef HAVE_BN_MUL_COMBA4 |
| 80 | void | 80 | void |
| 81 | bn_mul_comba4(BN_ULONG *rd, BN_ULONG *ad, BN_ULONG *bd) | 81 | bn_mul_comba4(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd) |
| 82 | { | 82 | { |
| 83 | /* XXX - consider using non-alt on CPUs that have the ADX extension. */ | 83 | /* XXX - consider using non-alt on CPUs that have the ADX extension. */ |
| 84 | bignum_mul_4_8_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); | 84 | bignum_mul_4_8_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); |
| @@ -87,7 +87,7 @@ bn_mul_comba4(BN_ULONG *rd, BN_ULONG *ad, BN_ULONG *bd) | |||
| 87 | 87 | ||
| 88 | #ifdef HAVE_BN_MUL_COMBA8 | 88 | #ifdef HAVE_BN_MUL_COMBA8 |
| 89 | void | 89 | void |
| 90 | bn_mul_comba8(BN_ULONG *rd, BN_ULONG *ad, BN_ULONG *bd) | 90 | bn_mul_comba8(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd) |
| 91 | { | 91 | { |
| 92 | /* XXX - consider using non-alt on CPUs that have the ADX extension. */ | 92 | /* XXX - consider using non-alt on CPUs that have the ADX extension. */ |
| 93 | bignum_mul_8_16_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); | 93 | bignum_mul_8_16_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); |
