From 773ac9d1f324cb2d5e8979df4b59e6016518cca3 Mon Sep 17 00:00:00 2001 From: Aidan Garske Date: Tue, 7 Apr 2026 14:01:53 -0700 Subject: [PATCH] Reset sizes consumed by the first exchange --- wolfcrypt/test/test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 3ee2b11cbe..78b51c7671 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -27690,6 +27690,9 @@ static wc_test_ret_t srp_test_digest(SrpType dgstType) #endif if (!r) { XMEMSET(cli2, 0, sizeof *cli2); + /* Reset sizes consumed by the first exchange. */ + clientPubKeySz = SRP_TEST_BUFFER_SIZE; + clientProofSz = SRP_MAX_DIGEST_SIZE; rNeg = wc_SrpInit_ex(cli2, dgstType, SRP_CLIENT_SIDE, HEAP_HINT, devId); if (!rNeg) rNeg = wc_SrpSetUsername(cli2, username, usernameSz);