From f3f05f0cf8c30a990193e332e26fdd8e54b3f59b Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 5 Dec 2025 14:12:32 +0000 Subject: libcrypto: make most of the BN_* macro pollution internal This is a first sweep of reducing the number of terribly named macros in bn.h More can go away. Those we need internally go to bn_local.h. Annoyingly bn_internal.h uses some of them, so it includes bn_local.h now. This can be cleaned up later. ok jsing kenjiro --- src/lib/libcrypto/ec/ec_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/ec/ec_internal.h') diff --git a/src/lib/libcrypto/ec/ec_internal.h b/src/lib/libcrypto/ec/ec_internal.h index 327d9ea94d..de0affa206 100644 --- a/src/lib/libcrypto/ec/ec_internal.h +++ b/src/lib/libcrypto/ec/ec_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_internal.h,v 1.2 2025/08/02 15:44:09 jsing Exp $ */ +/* $OpenBSD: ec_internal.h,v 1.3 2025/12/05 14:12:32 tb Exp $ */ /* * Copyright (c) 2024 Joel Sing * @@ -24,7 +24,7 @@ #define EC_FIELD_ELEMENT_MAX_BYTES \ (EC_FIELD_ELEMENT_MAX_BITS + 7) / 8 #define EC_FIELD_ELEMENT_MAX_WORDS \ - ((EC_FIELD_ELEMENT_MAX_BYTES + BN_BYTES - 1) / BN_BYTES) + ((EC_FIELD_ELEMENT_MAX_BYTES + sizeof(BN_ULONG) - 1) / sizeof(BN_ULONG)) typedef struct { BN_ULONG w[EC_FIELD_ELEMENT_MAX_WORDS]; -- cgit v1.2.3-55-g6feb