From b96eb16238b5b8acfbcc4ba3b430d163552aa1c8 Mon Sep 17 00:00:00 2001 From: Julian Arevalo Date: Wed, 18 Feb 2026 22:40:59 +0100 Subject: [PATCH] lib_cxng: Add defines for SECP256 key size --- include/ox_ec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ox_ec.h b/include/ox_ec.h index 9e0ff65ac..8d10a64c3 100644 --- a/include/ox_ec.h +++ b/include/ox_ec.h @@ -263,6 +263,10 @@ enum cx_curve_e { #endif // HAVE_ECC_MONTGOMERY }; +#if defined(HAVE_SECP256R1_CURVE) || defined(HAVE_SECP256K1_CURVE) +#define CX_SECP256_PUB_KEY_SIZE (65U) +#endif + /** Convenience type. See #cx_curve_e. */ typedef enum cx_curve_e cx_curve_t;