mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fixed use of uninitialized value in wc_ecc_sig_to_rs.
This commit is contained in:
@ -7043,6 +7043,9 @@ int wc_ecc_sig_to_rs(const byte* sig, word32 sigLen, byte* r, word32* rLen,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)XMEMSET(&rtmp, 0, sizeof(mp_int));
|
||||||
|
(void)XMEMSET(&stmp, 0, sizeof(mp_int));
|
||||||
|
|
||||||
err = DecodeECC_DSA_Sig(sig, sigLen, rtmp, stmp);
|
err = DecodeECC_DSA_Sig(sig, sigLen, rtmp, stmp);
|
||||||
|
|
||||||
/* extract r */
|
/* extract r */
|
||||||
|
Reference in New Issue
Block a user