diff options
author | jsing <> | 2024-04-16 13:04:05 +0000 |
---|---|---|
committer | jsing <> | 2024-04-16 13:04:05 +0000 |
commit | e03bf717d1c2f2ba657a6fdd6993fa1299c5cef6 (patch) | |
tree | 8dbd9f8dfed2cf56495620fb9bf397eb64231f61 /src/lib/libcrypto/bn/bn_local.h | |
parent | c86897ee35675bd6822b90b4b484a3a40d633c90 (diff) | |
download | openbsd-e03bf717d1c2f2ba657a6fdd6993fa1299c5cef6.tar.gz openbsd-e03bf717d1c2f2ba657a6fdd6993fa1299c5cef6.tar.bz2 openbsd-e03bf717d1c2f2ba657a6fdd6993fa1299c5cef6.zip |
Rename bn_expand() to bn_expand_bits().
Also change the bits type from int to size_t, since that's what the callers
are passing and we can avoid unnecessary input validation.
ok tb@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index 2c82e323fa..cffc5a2ea1 100644 --- a/src/lib/libcrypto/bn/bn_local.h +++ b/src/lib/libcrypto/bn/bn_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_local.h,v 1.41 2024/04/10 15:09:03 tb Exp $ */ | 1 | /* $OpenBSD: bn_local.h,v 1.42 2024/04/16 13:04:05 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 | * |
@@ -259,7 +259,7 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | |||
259 | const BN_ULONG *np, const BN_ULONG *n0, int num); | 259 | const BN_ULONG *np, const BN_ULONG *n0, int num); |
260 | 260 | ||
261 | void bn_correct_top(BIGNUM *a); | 261 | void bn_correct_top(BIGNUM *a); |
262 | int bn_expand(BIGNUM *a, int bits); | 262 | int bn_expand_bits(BIGNUM *a, size_t bits); |
263 | int bn_wexpand(BIGNUM *a, int words); | 263 | int bn_wexpand(BIGNUM *a, int words); |
264 | 264 | ||
265 | BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | 265 | BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, |