From 75e3b5a2979a246c90060c6a0e7e82e4a7bf1e18 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 11 Jan 2017 13:48:39 -0700 Subject: [PATCH] pass heap hint to temporary public ECC key --- wolfcrypt/src/ecc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 642ab379a..cf10174e6 100755 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -3160,8 +3160,7 @@ int wc_ecc_sign_hash_ex(const byte* in, word32 inlen, WC_RNG* rng, if (err == MP_OKAY) { int loop_check = 0; ecc_key pubkey; - - if (wc_ecc_init(&pubkey) == MP_OKAY) { + if (wc_ecc_init_ex(&pubkey, key->heap, INVALID_DEVID) == MP_OKAY) { for (;;) { if (++loop_check > 64) { err = RNG_FAILURE_E;