diff options
author | jsing <> | 2023-02-22 05:57:19 +0000 |
---|---|---|
committer | jsing <> | 2023-02-22 05:57:19 +0000 |
commit | 222cd28577f92b26b743a1efd78a4b1f22feda41 (patch) | |
tree | 2ddf08e4ceb2ba9c4c822705913bc4f02d4c0760 /src/lib/libcrypto/bn/bn_local.h | |
parent | 3384e5f7c99b52e4ecc61042ce7ba810b8e40f2c (diff) | |
download | openbsd-222cd28577f92b26b743a1efd78a4b1f22feda41.tar.gz openbsd-222cd28577f92b26b743a1efd78a4b1f22feda41.tar.bz2 openbsd-222cd28577f92b26b743a1efd78a4b1f22feda41.zip |
Replace bn_sub_part_words() with bn_sub().
Now that bn_sub() handles word arrays with potentially different lengths,
we no longer need bn_sub_part_words() - call bn_sub() instead. This allows
us to entirely remove the unnecessarily complex bn_sub_part_words() code.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_local.h')
-rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index 3e37238c5e..4576c36c91 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.16 2023/02/22 05:46:37 jsing Exp $ */ | 1 | /* $OpenBSD: bn_local.h,v 1.17 2023/02/22 05:57:19 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 | * |
@@ -264,8 +264,6 @@ void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, | |||
264 | void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, | 264 | void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, |
265 | int n, int tna, int tnb, BN_ULONG *t); | 265 | int n, int tna, int tnb, BN_ULONG *t); |
266 | void bn_sqr_recursive(BN_ULONG *r, const BN_ULONG *a, int n2, BN_ULONG *t); | 266 | void bn_sqr_recursive(BN_ULONG *r, const BN_ULONG *a, int n2, BN_ULONG *t); |
267 | BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, | ||
268 | int cl, int dl); | ||
269 | int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | 267 | int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, |
270 | const BN_ULONG *np, const BN_ULONG *n0, int num); | 268 | const BN_ULONG *np, const BN_ULONG *n0, int num); |
271 | 269 | ||