summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_local.h
diff options
context:
space:
mode:
authorjsing <>2024-04-16 13:04:05 +0000
committerjsing <>2024-04-16 13:04:05 +0000
commite03bf717d1c2f2ba657a6fdd6993fa1299c5cef6 (patch)
tree8dbd9f8dfed2cf56495620fb9bf397eb64231f61 /src/lib/libcrypto/bn/bn_local.h
parentc86897ee35675bd6822b90b4b484a3a40d633c90 (diff)
downloadopenbsd-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.h4
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
261void bn_correct_top(BIGNUM *a); 261void bn_correct_top(BIGNUM *a);
262int bn_expand(BIGNUM *a, int bits); 262int bn_expand_bits(BIGNUM *a, size_t bits);
263int bn_wexpand(BIGNUM *a, int words); 263int bn_wexpand(BIGNUM *a, int words);
264 264
265BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, 265BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,