From 732a0dd39a8f9f63668d9c67d30a163aef8330e5 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 20 Feb 2015 13:54:30 -0800 Subject: [PATCH] removed redundant mp_init of r and s in ecc verify hash --- wolfcrypt/src/ecc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index b15d04c69..a14af920a 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -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 * the rest of this function will execute, and everything * gets cleaned up at the end. */ - mp_init(&r); - mp_init(&s); if (err == MP_OKAY) err = DecodeECC_DSA_Sig(sig, siglen, &r, &s);