forked from wolfSSL/wolfssl
removed redundant mp_init of r and s in ecc verify hash
This commit is contained in:
@@ -2088,8 +2088,6 @@ int wc_ecc_verify_hash(const byte* sig, word32 siglen, const byte* hash,
|
|||||||
* If either of those don't allocate correctly, none of
|
* If either of those don't allocate correctly, none of
|
||||||
* the rest of this function will execute, and everything
|
* the rest of this function will execute, and everything
|
||||||
* gets cleaned up at the end. */
|
* gets cleaned up at the end. */
|
||||||
mp_init(&r);
|
|
||||||
mp_init(&s);
|
|
||||||
if (err == MP_OKAY)
|
if (err == MP_OKAY)
|
||||||
err = DecodeECC_DSA_Sig(sig, siglen, &r, &s);
|
err = DecodeECC_DSA_Sig(sig, siglen, &r, &s);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user