From a04b68243cc04b328ebe148fb3142b8b0773861d Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 12 May 2026 10:47:42 -0600 Subject: [PATCH] clear public/private key buffer after use in tropicsquare port --- wolfcrypt/src/port/tropicsquare/tropic01.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/port/tropicsquare/tropic01.c b/wolfcrypt/src/port/tropicsquare/tropic01.c index 8fa96906b4..7915711d4a 100644 --- a/wolfcrypt/src/port/tropicsquare/tropic01.c +++ b/wolfcrypt/src/port/tropicsquare/tropic01.c @@ -546,6 +546,9 @@ int Tropic01_Deinit(void) WOLFSSL_MSG("TROPIC01: Crypto device deinitialized successfully"); } + ForceZero(sh0priv, sizeof(sh0priv)); + ForceZero(sh0pub, sizeof(sh0pub)); + return 0; }