From f0a53f4a9f4d469fcbd498c98fde302b3bfe61f0 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 15 Oct 2025 15:35:23 -0700 Subject: [PATCH] tpm2: use BN_BIT2 to determine RADIX_BITS With LibreSSL 4.2.0 the THIRTY_TWO_BIT and SIXTY_FOUR_BIT_LONG defines were removed, but BN_BITS2 has the correct value for RADIX_BITS. Signed-off-by: orbea --- src/tpm2/crypto/openssl/tpm_radix.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/tpm2/crypto/openssl/tpm_radix.h b/src/tpm2/crypto/openssl/tpm_radix.h index 11076848f..4508ed645 100644 --- a/src/tpm2/crypto/openssl/tpm_radix.h +++ b/src/tpm2/crypto/openssl/tpm_radix.h @@ -64,15 +64,7 @@ #ifdef TPM_POSIX // libtpms added begin # include -# ifdef THIRTY_TWO_BIT -# define RADIX_BITS 32 -# endif -# ifdef SIXTY_FOUR_BIT_LONG -# define RADIX_BITS 64 -# endif -# ifndef RADIX_BITS -# error Need to determine RADIX_BITS value -# endif +# define RADIX_BITS BN_BITS2 #endif #ifdef TPM_WINDOWS #define RADIX_BITS 32