diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 6a0a2c4bb..0e4954667 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -7043,6 +7043,9 @@ int wc_ecc_sig_to_rs(const byte* sig, word32 sigLen, byte* r, word32* rLen, } #endif + (void)XMEMSET(&rtmp, 0, sizeof(mp_int)); + (void)XMEMSET(&stmp, 0, sizeof(mp_int)); + err = DecodeECC_DSA_Sig(sig, sigLen, rtmp, stmp); /* extract r */