From 2bf2c060560b5385755947cccaaba596fd679851 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 2 Jul 2026 16:34:16 -0700 Subject: [PATCH] rtl8735b: enable WOLF_CRYPTO_CB_COPY/FREE for HUK HMAC The HUK HMAC accumulation buffer now lives on the inner SHA-256 devCtx and relies on the cryptocb copy/free ops so wc_HmacCopy/wc_HmacFree manage it correctly. --- rtl8735b/tls/user_settings.h | 2 ++ rtl8735b/user_settings.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rtl8735b/tls/user_settings.h b/rtl8735b/tls/user_settings.h index edafe442..4970d496 100644 --- a/rtl8735b/tls/user_settings.h +++ b/rtl8735b/tls/user_settings.h @@ -12,6 +12,8 @@ extern "C" { /* ---- HUK crypto-callback device (our RealTek port) ---- */ #define WOLFSSL_RTL8735B_HUK #define WOLF_CRYPTO_CB +#define WOLF_CRYPTO_CB_COPY /* HUK HMAC buffer copy/free ops */ +#define WOLF_CRYPTO_CB_FREE /* ---- platform / RTOS ---- */ #define WOLFSSL_GENERAL_ALIGNMENT 4 diff --git a/rtl8735b/user_settings.h b/rtl8735b/user_settings.h index 2944e71f..57d0d7a5 100644 --- a/rtl8735b/user_settings.h +++ b/rtl8735b/user_settings.h @@ -12,6 +12,8 @@ extern "C" { /* ---- HUK crypto-callback device (our RealTek port) ---- */ #define WOLFSSL_RTL8735B_HUK #define WOLF_CRYPTO_CB +#define WOLF_CRYPTO_CB_COPY /* HUK HMAC buffer copy/free ops */ +#define WOLF_CRYPTO_CB_FREE /* ---- platform / RTOS ---- */ #define WOLFSSL_GENERAL_ALIGNMENT 4