From 2cd6698561d75d15cd7c626ddb33e385ec96f4f5 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 21 Jun 2023 07:41:56 +0000 Subject: Make BN_num_bits() independent of bn->top. Provide bn_bitsize(), which performs a constant time scan of a BN in order to determine the bit size of the BN value. Use this for BN_num_bits() such that it is no longer dependent on the bn->top value. ok tb@ --- lib/libcrypto/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libcrypto/Makefile') diff --git a/lib/libcrypto/Makefile b/lib/libcrypto/Makefile index 89bd94d79ae..6fe129bcdd3 100644 --- a/lib/libcrypto/Makefile +++ b/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.130 2023/06/11 05:35:43 tb Exp $ +# $OpenBSD: Makefile,v 1.131 2023/06/21 07:41:55 jsing Exp $ LIB= crypto LIBREBUILD=y @@ -195,6 +195,7 @@ SRCS+= bn_mod_sqrt.c SRCS+= bn_mont.c SRCS+= bn_mul.c SRCS+= bn_prime.c +SRCS+= bn_primitives.c SRCS+= bn_rand.c SRCS+= bn_recp.c SRCS+= bn_shift.c -- cgit v1.2.3